Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pages/theming/themed-stroke-width.page.tsx
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the stroke width dev page the right place for these examples? Nothing on the page indicates that there will be other tokens other than the icon stroke widths applied. Your change in particular is about button height and colors. Should we create a new page that allows you to toggle on/off the entire core theme?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good call. I will create another page or repurpose this page to be more generic

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ export default function ThemedStrokeWidthPage() {
borderWidthIconMedium: strokeMedium ? `${strokeMedium}px` : '1px',
borderWidthIconBig: strokeBig ? `${strokeBig}px` : '1.5px',
borderWidthIconLarge: strokeLarge ? `${strokeLarge}px` : '2px',
spaceButtonHorizontal: '12px',
spaceButtonVertical: '4px',
borderRadiusButton: '8px',
borderWidthButton: '1px',
},
};

Expand Down Expand Up @@ -222,6 +225,17 @@ export default function ThemedStrokeWidthPage() {
<Button iconName="call" variant="primary">
Button
</Button>
<Button iconName="call" variant="link">
Button
</Button>
<Button iconName="call" variant="normal">
Button
</Button>
</div>
<div>
<Button variant="primary">Button</Button>
<Button variant="link">Button</Button>
<Button variant="normal">Button</Button>
</div>

<SegmentedControl
Expand Down
64 changes: 64 additions & 0 deletions src/__integ__/__snapshots__/themes.test.ts.snap

Large diffs are not rendered by default.

Loading
Loading