Skip to content

Commit

Permalink
reinstate storybook-overrides.css
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed May 13, 2024
1 parent ff80cec commit 01f41e4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
<script defer src="index.js"></script>

<!-- Overrides for Storybook Docs and UI. -->
<link href="storybook-overrides/index.css" rel="stylesheet" />
<link href="storybook-overrides.css" rel="stylesheet" />
2 changes: 1 addition & 1 deletion ui/public/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
!.gitignore
!ajax/*
!sprite.svg
!storybook-overrides/*
!storybook-overrides.css
20 changes: 20 additions & 0 deletions ui/public/storybook-overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Reset Docs typography to use theme settings. */
.sbdocs-content :where(:is(p, li):not([class]), dd, small) {
max-inline-size: none;
}

.sbdocs-content ul ul {
list-style-type: circle;
}

.sbdocs-content code {
color: inherit !important;
font-size: inherit !important;
font-weight: 600;
}

/* Override dark mode in Storybook docs. */
:root :has(#storybook-docs:not([hidden='true'])) {
--color-text: 0 0% 20%;
color-scheme: light !important;
}

0 comments on commit 01f41e4

Please sign in to comment.