Skip to content

Commit 1e1bc22

Browse files
makafsalkennylamKritvi-bhatia17
authored
fix(button): change prop dangerDescriptor to dangerDescription (#18302)
Co-authored-by: kennylam <[email protected]> Co-authored-by: Kritvi <[email protected]>
1 parent e163b86 commit 1e1bc22

File tree

1 file changed

+4
-4
lines changed
  • packages/web-components/src/components/button

1 file changed

+4
-4
lines changed

packages/web-components/src/components/button/button.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ class CDSButton extends HostListenerMixin(FocusMixin(LitElement)) {
125125
/**
126126
* Specify the message read by screen readers for the danger button variant
127127
*/
128-
@property({ reflect: true, attribute: 'danger-descriptor' })
129-
dangerDescriptor;
128+
@property({ reflect: true, attribute: 'danger-description' })
129+
dangerDescription;
130130

131131
/**
132132
* `true` if the button should be disabled.
@@ -244,7 +244,7 @@ class CDSButton extends HostListenerMixin(FocusMixin(LitElement)) {
244244
const {
245245
autofocus,
246246
buttonClassName,
247-
dangerDescriptor,
247+
dangerDescription,
248248
disabled,
249249
download,
250250
href,
@@ -370,7 +370,7 @@ class CDSButton extends HostListenerMixin(FocusMixin(LitElement)) {
370370
type="${ifDefined(type)}">
371371
${isDanger
372372
? html`<span class="${prefix}--visually-hidden"
373-
>${dangerDescriptor}</span
373+
>${dangerDescription}</span
374374
>`
375375
: ``}
376376
<slot @slotchange="${handleSlotChange}"></slot>

0 commit comments

Comments
 (0)