Skip to content

Commit

Permalink
fix(cc-tile-metrics)!: use kebab case for all attributes
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the following attributes are impacted
- `metricsLink` has been renamed to `metrics-link`,
- `metricsState` has been renamed to `metrics-state`,
- `grafanaLinkState` has been renamed to `grafana-link-state`.

This change only affects attributes.
Properties are still camelCase as they should.
  • Loading branch information
florian-sanders-cc committed Nov 25, 2024
1 parent ca1c0b7 commit 565ebee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/cc-tile-metrics/cc-tile-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const SKELETON_REQUESTS = Array.from(new Array(NUMBER_OF_POINTS)).map((_, index)
export class CcTileMetrics extends LitElement {
static get properties() {
return {
metricsLink: { type: String },
metricsState: { type: Object },
grafanaLinkState: { type: Object },
metricsLink: { type: String, attribute: 'metrics-link' },
metricsState: { type: Object, attribute: 'metrics-state' },
grafanaLinkState: { type: Object, attribute: 'grafana-link-state' },
_docsPanelVisible: { type: Boolean, state: true },
};
}
Expand Down

0 comments on commit 565ebee

Please sign in to comment.