Merge pull request #36539 from overleaf/mj-misc-dark-mode-modals-core1

[web] Add dark mode to misc editor modals

GitOrigin-RevId: 3d7bd45476b0f814abfc26fa3da3eecca54342e8
This commit is contained in:
Mathias Jakobsen
2026-09-17 11:57:06 +00:00
committed by Copybot
parent 034b9e35be
commit 51ae580da9
7 changed files with 20 additions and 5 deletions
@@ -2,6 +2,7 @@ import React from 'react'
import DictionaryModalContent from './dictionary-modal-content'
import withErrorBoundary from '../../../infrastructure/error-boundary'
import { OLModal } from '@/shared/components/ol/ol-modal'
import { useFeatureFlag } from '@/shared/context/split-test-context'
type DictionaryModalProps = {
show?: boolean
@@ -9,6 +10,8 @@ type DictionaryModalProps = {
}
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
const themed = useFeatureFlag('themed-modals')
return (
<OLModal
animation
@@ -17,6 +20,7 @@ function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
id="dictionary-modal"
data-testid="dictionary-modal"
size="sm"
themed={themed}
>
<DictionaryModalContent handleHide={handleHide} />
</OLModal>