Skip to content

Update d2l-scroll-wrapper to use semantic variables.#7011

Merged
dbatiste merged 3 commits into
mainfrom
dbatiste/scroll-wrapper-dark-mode
May 22, 2026
Merged

Update d2l-scroll-wrapper to use semantic variables.#7011
dbatiste merged 3 commits into
mainfrom
dbatiste/scroll-wrapper-dark-mode

Conversation

@dbatiste
Copy link
Copy Markdown
Contributor

@dbatiste dbatiste commented May 22, 2026

GAUD-9480

This PR updates d2l-scroll-wrapper to use semantic variables.

Notably, there was a floating shadow that has been copied forward from when the focus was moved from the buttons to the scroll-wrapper container several years ago. I've confirmed with Jeff that we don't need/want that, and removed it.

@dbatiste dbatiste requested a review from a team as a code owner May 22, 2026 16:17
@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-7011/

Note

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

function getFocusStyleSheet() {
if (!focusStyleSheet) {
focusStyleSheet = new CSSStyleSheet();
focusStyleSheet.replaceSync(getFocusRingStyles(
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.

There's a bit of history around this. The 0 2px 12px 0 rgba(0, 0, 0, 0.15) is our "floating" shadow. I think it was unintentionally copied forward when the focus styles were moved from the scroller buttons to the scroll-wrapper container. At the time, the shadow was also being used for the focus outline. We don't really want or need this shadow.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@dbatiste dbatiste merged commit c17877e into main May 22, 2026
8 of 9 checks passed
@dbatiste dbatiste deleted the dbatiste/scroll-wrapper-dark-mode branch May 22, 2026 16:58
@d2l-github-release-tokens
Copy link
Copy Markdown

🎉 This PR is included in version 3.253.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants