mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #18201 from overleaf/rd-bootstrap-fixes
[web] Fixing styles on the Account Settings page GitOrigin-RevId: f20d8ccdf762970e22829a15c65d674e3d402bcf
This commit is contained in:
parent
77e2206320
commit
3ae88d80bd
13 changed files with 32 additions and 21 deletions
|
@ -10,7 +10,7 @@ import { ExposedSettings } from '../../../../../types/exposed-settings'
|
|||
import useAsync from '../../../shared/hooks/use-async'
|
||||
import { useUserContext } from '../../../shared/context/user-context'
|
||||
import ButtonWrapper from '@/features/ui/components/bootstrap-5/wrappers/button-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
function AccountInfoSection() {
|
||||
const { t } = useTranslation()
|
||||
|
|
|
@ -9,7 +9,7 @@ import EmailsHeader from './emails/header'
|
|||
import EmailsRow from './emails/row'
|
||||
import AddEmail from './emails/add-email'
|
||||
import Icon from '../../../shared/components/icon'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
import { ExposedSettings } from '../../../../../types/exposed-settings'
|
||||
import { LeaversSurveyAlert } from './leavers-survey-alert'
|
||||
|
||||
|
|
|
@ -149,9 +149,9 @@ function AddEmail() {
|
|||
|
||||
if (!isValidEmail(newEmail)) {
|
||||
return (
|
||||
<form>
|
||||
<Layout isError={isError} error={error}>
|
||||
<ReCaptcha2 page="addEmail" ref={recaptchaRef} />
|
||||
<form>
|
||||
<ColWrapper md={8}>
|
||||
<Cell>
|
||||
{InputComponent}
|
||||
|
@ -170,8 +170,8 @@ function AddEmail() {
|
|||
<AddNewEmailBtn email={newEmail} disabled />
|
||||
</Cell>
|
||||
</ColWrapper>
|
||||
</form>
|
||||
</Layout>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -179,9 +179,9 @@ function AddEmail() {
|
|||
newEmailMatchedDomain && ssoAvailableForDomain(newEmailMatchedDomain)
|
||||
|
||||
return (
|
||||
<form>
|
||||
<Layout isError={isError} error={error}>
|
||||
<ReCaptcha2 page="addEmail" ref={recaptchaRef} />
|
||||
<form>
|
||||
<ColWrapper md={8}>
|
||||
<Cell>
|
||||
{InputComponent}
|
||||
|
@ -232,8 +232,8 @@ function AddEmail() {
|
|||
</Cell>
|
||||
</ColWrapper>
|
||||
)}
|
||||
</form>
|
||||
</Layout>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import Icon from '../../../../../shared/components/icon'
|
|||
import { UseAsyncReturnType } from '../../../../../shared/hooks/use-async'
|
||||
import { getUserFacingMessage } from '../../../../../infrastructure/fetch-json'
|
||||
import RowWrapper from '@/features/ui/components/bootstrap-5/wrappers/row-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
type LayoutProps = {
|
||||
children: React.ReactNode
|
||||
|
|
|
@ -5,7 +5,7 @@ import ReconfirmationInfoSuccess from './reconfirmation-info/reconfirmation-info
|
|||
import ReconfirmationInfoPromptText from './reconfirmation-info/reconfirmation-info-prompt-text'
|
||||
import RowWrapper from '@/features/ui/components/bootstrap-5/wrappers/row-wrapper'
|
||||
import ColWrapper from '@/features/ui/components/bootstrap-5/wrappers/col-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
import { isBootstrap5 } from '@/features/utils/bootstrap-5'
|
||||
import Icon from '@/shared/components/icon'
|
||||
import { useUserEmailsContext } from '@/features/settings/context/user-email-context'
|
||||
|
|
|
@ -2,7 +2,7 @@ import { useState } from 'react'
|
|||
import { useTranslation, Trans } from 'react-i18next'
|
||||
import Icon from '../../../../shared/components/icon'
|
||||
import getMeta from '../../../../utils/meta'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
type InstitutionLink = {
|
||||
universityName: string
|
||||
|
|
|
@ -2,7 +2,7 @@ import { useTranslation, Trans } from 'react-i18next'
|
|||
import getMeta from '../../../../utils/meta'
|
||||
import { FetchError } from '../../../../infrastructure/fetch-json'
|
||||
import { ExposedSettings } from '../../../../../../types/exposed-settings'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
type LeaveModalFormErrorProps = {
|
||||
error: FetchError
|
||||
|
|
|
@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'
|
|||
import usePersistedState from '../../../shared/hooks/use-persisted-state'
|
||||
import { useUserEmailsContext } from '../context/user-email-context'
|
||||
import { sendMB } from '../../../infrastructure/event-tracking'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
function sendMetrics(segmentation: 'view' | 'click' | 'close') {
|
||||
sendMB('institutional-leavers-survey-notification', { type: segmentation })
|
||||
|
|
|
@ -6,7 +6,7 @@ import { SSOLinkingWidget } from './linking/sso-widget'
|
|||
import getMeta from '../../../utils/meta'
|
||||
import { useBroadcastUser } from '@/shared/hooks/user-channel/use-broadcast-user'
|
||||
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
function LinkingSection() {
|
||||
useBroadcastUser()
|
||||
|
|
|
@ -11,7 +11,7 @@ import { ExposedSettings } from '../../../../../types/exposed-settings'
|
|||
import { PasswordStrengthOptions } from '../../../../../types/password-strength-options'
|
||||
import useAsync from '../../../shared/hooks/use-async'
|
||||
import ButtonWrapper from '@/features/ui/components/bootstrap-5/wrappers/button-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/notification-wrapper'
|
||||
import NotificationWrapper from '@/features/ui/components/bootstrap-5/wrappers/notification-wrapper'
|
||||
|
||||
type PasswordUpdateResult = {
|
||||
message?: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Headings
|
||||
|
||||
// Apply margin above the heading only when it has a sibling
|
||||
// Headings
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
|
@ -13,7 +13,9 @@ h6,
|
|||
.h4,
|
||||
.h5,
|
||||
.h6 {
|
||||
* > * + & {
|
||||
// Apply margin above the heading only when it has a preceding sibling or is inside a row with a preceding sibling
|
||||
* > * + &,
|
||||
* + .row & {
|
||||
margin-top: $spacing-08;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,6 +118,15 @@
|
|||
|
||||
&.btn-danger {
|
||||
color: var(--content-danger);
|
||||
//since it's a link, override the button states
|
||||
&:active {
|
||||
color: var(--content-danger);
|
||||
background-color: transparent;
|
||||
}
|
||||
&:focus-visible {
|
||||
background-color: transparent;
|
||||
outline: -webkit-focus-ring-color auto 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue