Skip to content

Commit 2c30d8e

Browse files
committed
fix: use token for font size
1 parent d53361c commit 2c30d8e

6 files changed

Lines changed: 17 additions & 6 deletions

File tree

workspaces/core/scss/components/_buttons.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
vertical-align: middle;
8080

8181
.#{$shale}icon {
82-
font-size: 0.75em;
83-
padding-left: 0.25em;
82+
font-size: var(--#{$shale}font-1);
83+
padding: 0.1rem;
84+
display: inline-block;
85+
vertical-align: text-bottom;
8486
}
8587
}

workspaces/core/scss/components/_caption-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
display: inline-block;
2727
fill: var(--#{$shale}header-text);
2828
filter: var(--#{$shale}filter-shadow-moderate);
29-
font-size: 1rem;
29+
font-size: var(--#{$shale}font-1);
3030
font-weight: bold;
3131
opacity: 0.75;
3232
outline-color: var(--#{$shale}accent-400);

workspaces/core/scss/components/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
& .#{$shale}header-title {
3434
align-items: center;
3535
flex-grow: 1;
36-
font-size: 1rem;
36+
font-size: var(--#{$shale}font-0);
3737
}
3838

3939
& .#{$shale}caption-menu {

workspaces/core/scss/components/_link.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
.#{$shale}icon {
1111
fill: var(--#{$shale}link-colour);
12-
font-size: 0.75em;
12+
font-size: var(--#{$shale}font-0);
1313
padding-left: 0.25em;
1414
}
1515

workspaces/core/scss/components/_tab-skip.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
border: 3px solid var(--#{$shale}button-border-active);
2222
box-shadow: var(--#{$shale}shadow-puffy);
2323
color: var(--#{$shale}code-text-colour, var(--#{$shale}text-colour));
24-
font-size: 1rem;
24+
font-size: var(--#{$shale}font-1);
2525
height: auto;
2626
left: 1rem;
2727
margin: 1rem 0.5rem;

workspaces/react/src/components/Button.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ export interface BaseButtonProps {
2020
* <Button variant="primary">Click Me</Button>;
2121
* ```
2222
*
23+
* @example With icon
24+
*
25+
* ```tsx
26+
* <Button state="active">
27+
* <Icon icon="download" />
28+
* Download
29+
* </Button>;
30+
* ```
31+
*
2332
* @alpha
2433
*/
2534
export const Button: PolymorphicComponent<"button", BaseButtonProps> = ({

0 commit comments

Comments
 (0)