💄(react) fix Button style

QA-based updates to the Button components. It includes global UI updates
to make the Button to match the sketches.
This commit is contained in:
Nathan Vasse
2023-09-01 11:23:14 +02:00
committed by NathanVss
parent 37de4b3d70
commit 4e6e5a2e52
6 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---
fix button style

View File

@@ -16,7 +16,8 @@
&:focus-visible { &:focus-visible {
border-color: #FFF; border-color: #FFF;
box-shadow: 0 0 0 4px var(--c--theme--colors--primary-400); border-radius: var(--c--components--button--border-radius--focus);
box-shadow: 0 0 0 2px var(--c--theme--colors--primary-400);
outline: none; outline: none;
} }
@@ -26,7 +27,7 @@
&:disabled { &:disabled {
background-color: var(--c--theme--colors--greyscale-200); background-color: var(--c--theme--colors--greyscale-200);
color: var(--c--theme--colors--greyscale-400); color: var(--c--theme--colors--greyscale-600);
cursor: not-allowed; cursor: not-allowed;
pointer-events: none; pointer-events: none;
} }
@@ -74,7 +75,7 @@
} }
&--primary { &--primary {
background-color: var(--c--theme--colors--primary-500); background-color: var(--c--theme--colors--primary-400);
color: var(--c--theme--colors--primary-text); color: var(--c--theme--colors--primary-text);
&:hover, &:focus-visible { &:hover, &:focus-visible {

View File

@@ -4,6 +4,7 @@ export const tokens = (defaults: DefaultTokens) => {
return { return {
"border-radius": "8px", "border-radius": "8px",
"border-radius--active": "2px", "border-radius--active": "2px",
"border-radius--focus": "8px",
"medium-height": "48px", "medium-height": "48px",
"small-height": "32px", "small-height": "32px",
"medium-font-size": defaults.theme.font.sizes.l, "medium-font-size": defaults.theme.font.sizes.l,

View File

@@ -197,6 +197,7 @@
--c--components--forms-checkbox--size: 1.5rem; --c--components--forms-checkbox--size: 1.5rem;
--c--components--button--border-radius: 8px; --c--components--button--border-radius: 8px;
--c--components--button--border-radius--active: 2px; --c--components--button--border-radius--active: 2px;
--c--components--button--border-radius--focus: 8px;
--c--components--button--medium-height: 48px; --c--components--button--medium-height: 48px;
--c--components--button--small-height: 32px; --c--components--button--small-height: 32px;
--c--components--button--medium-font-size: var(--c--theme--font--sizes--l); --c--components--button--medium-font-size: var(--c--theme--font--sizes--l);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long