🐛(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:
committed by
Jean-Baptiste PENRATH
parent
d976c6f51c
commit
8e049bc21e
5
.changeset/fresh-dots-happen.md
Normal file
5
.changeset/fresh-dots-happen.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@openfun/cunningham-react": patch
|
||||
---
|
||||
|
||||
Apply disable style to disabled button link
|
||||
Reference in New Issue
Block a user