mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #18660 from overleaf/td-rd-bs5-contact-us-modal
Bootstrap 5 contact us modal GitOrigin-RevId: a4607fab50152109fbe83bc29246b7b4a82539a1
This commit is contained in:
parent
e533bee8a3
commit
c0d920f305
7 changed files with 20 additions and 4 deletions
|
@ -24,6 +24,9 @@ block body
|
||||||
if (typeof(suppressCookieBanner) == 'undefined')
|
if (typeof(suppressCookieBanner) == 'undefined')
|
||||||
include _cookie_banner
|
include _cookie_banner
|
||||||
|
|
||||||
|
if bootstrapVersion === 5
|
||||||
|
!= moduleIncludes("contactModal-marketing-bootstrap-5", locals)
|
||||||
|
else
|
||||||
!= moduleIncludes("contactModal-marketing", locals)
|
!= moduleIncludes("contactModal-marketing", locals)
|
||||||
|
|
||||||
block prepend foot-scripts
|
block prepend foot-scripts
|
||||||
|
|
|
@ -88,7 +88,7 @@ nav.navbar.navbar-default.navbar-main.navbar-expand-lg
|
||||||
if child.divider
|
if child.divider
|
||||||
+dropdown-menu-divider
|
+dropdown-menu-divider
|
||||||
else if child.isContactUs
|
else if child.isContactUs
|
||||||
+dropdown-menu-link-item()(data-ol-open-contact-form-modal="contact-us" href)
|
+dropdown-menu-link-item()(data-ol-open-contact-form-modal="contact-us" data-bs-target="#contactUsModal" href data-bs-toggle="modal")
|
||||||
span(event-tracking="menu-clicked-contact" event-tracking-mb="true" event-tracking-trigger="click")
|
span(event-tracking="menu-clicked-contact" event-tracking-mb="true" event-tracking-trigger="click")
|
||||||
| #{translate("contact_us")}
|
| #{translate("contact_us")}
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import 'jquery'
|
import 'jquery'
|
||||||
import 'bootstrap'
|
import 'bootstrap'
|
||||||
|
import './features/contact-form'
|
||||||
|
|
||||||
$('[data-ol-lang-selector-tooltip]').tooltip({ trigger: 'hover' })
|
$('[data-ol-lang-selector-tooltip]').tooltip({ trigger: 'hover' })
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default function Button({
|
||||||
className={loadingSpinnerClassName}
|
className={loadingSpinnerClassName}
|
||||||
role="status"
|
role="status"
|
||||||
/>
|
/>
|
||||||
<span className="sr-only">{t('loading')}</span>
|
<span className="visually-hidden">{t('loading')}</span>
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<span className="button-content" aria-hidden={isLoading}>
|
<span className="button-content" aria-hidden={isLoading}>
|
||||||
|
|
|
@ -4,7 +4,6 @@ import './features/form-helpers/hydrate-form'
|
||||||
import './features/form-helpers/password-visibility'
|
import './features/form-helpers/password-visibility'
|
||||||
import './features/link-helpers/slow-link'
|
import './features/link-helpers/slow-link'
|
||||||
import './features/bookmarkable-tab'
|
import './features/bookmarkable-tab'
|
||||||
import './features/contact-form'
|
|
||||||
import './features/event-tracking'
|
import './features/event-tracking'
|
||||||
import './features/fallback-image'
|
import './features/fallback-image'
|
||||||
import './features/multi-submit'
|
import './features/multi-submit'
|
||||||
|
|
|
@ -80,3 +80,7 @@
|
||||||
color: var(--content-disabled);
|
color: var(--content-disabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
margin-bottom: var(--spacing-06);
|
||||||
|
}
|
||||||
|
|
|
@ -82,3 +82,12 @@
|
||||||
.git-bridge-optional-tokens-actions {
|
.git-bridge-optional-tokens-actions {
|
||||||
margin-top: var(--spacing-05);
|
margin-top: var(--spacing-05);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Contact us modal
|
||||||
|
.contact-us-modal-textarea {
|
||||||
|
height: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-form-messages .notification {
|
||||||
|
margin-bottom: var(--spacing-05);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue