Skip to content

Commit 0c2564a

Browse files
authored
Merge pull request #90 from umbraco/feature/add-font-size-custom-property-to-uui-button
2 parents ca6a169 + 9036d0d commit 0c2564a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/uui-button/lib/uui-button.element.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export type UUIButtonType = 'submit' | 'button' | 'reset';
2626
* @cssprop --uui-button-border-width - overwrite the border width
2727
* @cssprop --uui-button-border-radius - overwrite the border radius
2828
* @cssprop --uui-button-font-weight - overwrite the font weight
29+
* @cssprop --uui-button-font-size - overwrite the font size
2930
* @cssprop --uui-button-background-color - overwrite the background color
3031
* @cssprop --uui-button-background-color-hover - overwrite the background color for hover state
3132
* @cssprop --uui-button-background-color-disabled - overwrite the background color for disabled state
@@ -100,7 +101,7 @@ export class UUIButtonElement extends LabelMixin('', LitElement) {
100101
--uui-button-font-weight,
101102
var(--uui-interface-font-weight)
102103
);
103-
font-size: inherit;
104+
font-size: var(--uui-button-font-size, inherit);
104105
font-family: inherit;
105106
106107
background-color: var(

0 commit comments

Comments
 (0)