Skip to content

Commit

Permalink
Do not show transparent border in Storybook in forced colors mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Sep 11, 2024
1 parent c86ad61 commit 06ff1b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions storybook/src/styles/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,10 @@
:is(#storybook-root, .sbdocs-content) a[href="#"] {
cursor: not-allowed;
}

/* Override to make sure the default transparent border isn't shown in forced colors mode. */
.innerZoomElementWrapper.innerZoomElementWrapper > div {
@media (forced-colors: active) {
border-color: Canvas !important;
}
}

0 comments on commit 06ff1b8

Please sign in to comment.