Skip to content

fix: Remove d2l-offscreen-sizeless flag - #7247

Open
GZolla wants to merge 3 commits into
mainfrom
gzolla/remove-d2l-offscreen-sizeless
Open

fix: Remove d2l-offscreen-sizeless flag#7247
GZolla wants to merge 3 commits into
mainfrom
gzolla/remove-d2l-offscreen-sizeless

Conversation

@GZolla

@GZolla GZolla commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@GZolla
GZolla requested a review from a team as a code owner July 21, 2026 19:16
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7247/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

import { css } from 'lit';
import { getFlag } from '../../helpers/flags.js';

const OffSCREEN_SIZELESS = getFlag('d2l-offscreen-sizeless', true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please correct me if I'm wrong but this should be deleted in December 2026 (this year) according to the flag's definition. Also the jira ticket this PR is linked to says the same so, just wanted to double check if this is something intended. Thank you

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So 6 months is the default when creating a new flag and hence why this is set in December, but usually we have 3-release lifespans for Gaudi flags(that would be September). Nothing has been raised around this so it's safe to remove it now

*/
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 */

@dbatiste dbatiste Jul 27, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I reviewed the PR that changed this, but now I am wondering what the backstory is on why we are changing the dimension from 1px to 0. IIRC, a long long time ago we discovered that screen readers would not announce elements with zero dimensions. I'm assuming that must have changed since I don't think we'd change this without testing with a screenreader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants