Skip to content

Commit 526f34d

Browse files
committed
only bold font for some looks
1 parent e7bdd61 commit 526f34d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class UUIButtonElement extends FormControlMixin(
6666
6767
text-align: center;
6868
font-size: var(--uui-button-font-size, inherit);
69-
font-weight: var(--uui-button-font-weight, 700);
69+
font-weight: var(--uui-button-font-weight, 500);
7070
transition: background-color 80ms, border-color 80ms, color 80ms;
7171
}
7272
@@ -235,6 +235,9 @@ export class UUIButtonElement extends FormControlMixin(
235235
background-color: var(--uui-button-background-color, var(--color));
236236
color: var(--uui-button-contrast, var(--color-contrast));
237237
border-color: var(--uui-button-border-color, transparent);
238+
239+
/* special for primary: */
240+
font-weight: var(--uui-button-font-weight, 700);
238241
}
239242
:host([look='primary']:hover) button {
240243
background-color: var(
@@ -260,6 +263,9 @@ export class UUIButtonElement extends FormControlMixin(
260263
);
261264
color: var(--uui-button-contrast, var(--color-standalone));
262265
border-color: var(--uui-button-border-color, transparent);
266+
267+
/* special for secondary: */
268+
font-weight: var(--uui-button-font-weight, 700);
263269
}
264270
:host([look='secondary']:hover) button {
265271
background-color: var(
@@ -283,6 +289,9 @@ export class UUIButtonElement extends FormControlMixin(
283289
background-color: var(--uui-button-background-color, transparent);
284290
color: var(--uui-button-contrast, var(--color-standalone));
285291
border-color: var(--uui-button-border-color, --color-standalone);
292+
293+
/* special for outline: */
294+
font-weight: var(--uui-button-font-weight, 700);
286295
}
287296
:host([look='outline']:not([disabled]):hover) button {
288297
background-color: var(--uui-button-background-color-hover, transparent);

0 commit comments

Comments
 (0)