diff --git a/components/offscreen/offscreen-styles.js b/components/offscreen/offscreen-styles.js index 2b9466658e0..38605b9c494 100644 --- a/components/offscreen/offscreen-styles.js +++ b/components/offscreen/offscreen-styles.js @@ -1,7 +1,5 @@ import { css } from 'lit'; -import { getFlag } from '../../helpers/flags.js'; -const OffSCREEN_SIZELESS = getFlag('d2l-offscreen-sizeless', true); const HAS_DOCUMENT = globalThis.document !== undefined; /** @@ -9,12 +7,12 @@ const HAS_DOCUMENT = globalThis.document !== undefined; */ export const _offscreenStyleDeclarations = css` direction: var(--d2l-document-direction, ${ !HAS_DOCUMENT ? css`unset` : (document.dir === 'rtl' ? css`rtl` : css`ltr`)}); /* stylelint-disable-line @stylistic/string-quotes */ - height: ${HAS_DOCUMENT && OffSCREEN_SIZELESS ? 0 : 1}px; /* The HAS_DOCUMENT check can be removed once the d2l-offscreen-sizeless flag is removed and set to 0px */ + height: 0; inset-inline-start: -10000px; overflow: hidden; position: absolute !important; white-space: nowrap; - width: ${HAS_DOCUMENT && OffSCREEN_SIZELESS ? 0 : 1}px; /* The HAS_DOCUMENT check can be removed once the d2l-offscreen-sizeless flag is removed and set to 0px */ + width: 0; `; export const offscreenStyles = css`