🐛(react) disable button link

According to its prop, the Button component can be rendered as
a link but in this case, the prop `disabled` has no effect. So to fix
that if the Button receives a `href` prop and is disabled, we apply
a modifier class `.c__button--disabled`.
This commit is contained in:
jbpenrath
2025-08-06 17:01:30 +02:00
committed by Jean-Baptiste PENRATH
parent d976c6f51c
commit 8e049bc21e
5 changed files with 30 additions and 1 deletions

View File

@@ -32,7 +32,7 @@
border-color: currentColor;
}
&:disabled {
&:disabled, &.c__button--disabled {
background-color: var(--c--theme--colors--greyscale-200);
color: var(--c--theme--colors--greyscale-600);
cursor: not-allowed;