Skip to content

Commit e0ded1f

Browse files
authored
[Storybook]: Update TopBar CustomTheme story (#93)
## What does this change? Use the custom theme as will be used in the newsletters tool (guardian/newsletters-nx#621) as our custom theme story, as the example there is a detailed example on how to do theming
2 parents 4bb4f2e + 6ccb6d2 commit e0ded1f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/components/topbar/TopBar.stories.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,32 @@ export const CustomTheme = {
140140
<TopBar
141141
theme={{
142142
'background-color': baseColors.cyan[200],
143+
'border-top': `${semanticSizing.border.default} solid ${semanticColors.border.strong}`,
144+
'border-right': `${semanticSizing.border.default} solid ${semanticColors.border.strong}`,
145+
'border-bottom': `${semanticSizing.border.default} solid ${semanticColors.border.weak}`,
146+
'border-left': `${semanticSizing.border.default} solid ${semanticColors.border.strong}`,
147+
148+
collapsedNavMenu: {
149+
button: {
150+
color: semanticColors.text['stronger-inverse'],
151+
active: { 'background-color': baseColors.cyan[100] },
152+
hovered: { 'background-color': baseColors.cyan[100] },
153+
},
154+
popover: {
155+
'background-color': baseColors.cyan[200],
156+
},
157+
},
143158
ToolName: {
144159
color: semanticColors.text['stronger-inverse'],
145160
},
146161
Navigation: {
162+
shared: {
163+
_menuOpen: {
164+
selected: {
165+
'background-color': baseColors.cyan[100],
166+
},
167+
},
168+
},
147169
selected: {
148170
color: semanticColors.text['stronger-inverse'],
149171
'border-bottom': `${semanticSizing.border['extra-wide']} solid ${semanticColors.border['selected-inverse']}`,

0 commit comments

Comments
 (0)