Skip to content

Commit b7c74c0

Browse files
authored
fix: reflect gcds-button disabled prop to support :host([disabled]) styles (#894)
1 parent 0643003 commit b7c74c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/components/gcds-button/gcds-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class GcdsButton {
8888
/**
8989
* The disabled attribute for a <button> element.
9090
*/
91-
@Prop() disabled: boolean;
91+
@Prop({ reflect: true }) disabled: boolean;
9292

9393
@Watch('disabled')
9494
validateDisabled(newValue: boolean) {

0 commit comments

Comments
 (0)