Skip to content

Commit

Permalink
feat(cc-badge)!: remove the iconAccessibleName prop & associated at…
Browse files Browse the repository at this point in the history
…tribute

Use the `icon-a11y-name` attribute or the `iconA11yName` property instead.
  • Loading branch information
florian-sanders-cc committed Mar 7, 2024
1 parent 9019da7 commit 6c322c3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/cc-badge/cc-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class CcBadge extends LitElement {
return {
circle: { type: Boolean },
icon: { type: Object },
iconAccessibleName: { type: String, attribute: 'icon-accessible-name' },
iconA11yName: { type: String, attribute: 'icon-a11y-name' },
intent: { type: String },
skeleton: { type: Boolean },
Expand Down Expand Up @@ -52,18 +51,6 @@ export class CcBadge extends LitElement {
this.weight = 'dimmed';
}

get iconAccessibleName () {
return this.iconA11yName;
}

/**
* Deprecated property. Use `iconA11yName` property or `icon-a11y-name` attribute instead.
* @deprecated
*/
set iconAccessibleName (value) {
this.iconA11yName = value;
}

render () {
const modes = {
dimmed: this.weight == null || this.weight === 'dimmed',
Expand Down

0 comments on commit 6c322c3

Please sign in to comment.