Merge pull request #21815 from overleaf/td-bs5-references-search

[BS5] Migrate references search modal

GitOrigin-RevId: 65496840e32af09e5ae7351aa1789ebf5cac5083
This commit is contained in:
Tim Down
2024-11-15 09:04:42 +00:00
committed by Copybot
parent 73b17dd694
commit daaff1d9c6
9 changed files with 127 additions and 19 deletions
@@ -3,6 +3,7 @@ import classnames from 'classnames'
import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
import MaterialIcon from '@/shared/components/material-icon'
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
import { bsVersion } from '@/features/utils/bootstrap-5'
type TooltipProps = {
id: string
@@ -30,7 +31,9 @@ const BetaBadge: FC<{
}}
>
<a href={url} target="_blank" rel="noopener noreferrer">
<span className="sr-only">{tooltip.text}</span>
<span className={bsVersion({ bs5: 'visually-hidden', bs3: 'sr-only' })}>
{tooltip.text}
</span>
<BootstrapVersionSwitcher
bs3={<span className={classnames('badge', badgeClass)} />}
bs5={