diff --git a/packages/webawesome/docs/docs/components/rating.md b/packages/webawesome/docs/docs/components/rating.md index 682fc1b4c..26631de31 100644 --- a/packages/webawesome/docs/docs/components/rating.md +++ b/packages/webawesome/docs/docs/components/rating.md @@ -131,7 +131,7 @@ You can provide custom icons by passing a function to the `getSymbol` property. ### Value-based Icons -You can also use the `getSymbol` property to render different icons based on value. +You can also use the `getSymbol` property to render different icons based on value and/or whether the icon is currently selected. ```html {.example} @@ -142,7 +142,7 @@ You can also use the `getSymbol` property to render different icons based on val await customElements.whenDefined("wa-rating") await rating.updateComplete - rating.getSymbol = value => { + rating.getSymbol = (value, isSelected) => { const icons = ['face-angry', 'face-frown', 'face-meh', 'face-smile', 'face-laugh']; return ``; }; diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md index 0c6d661af..54ec19beb 100644 --- a/packages/webawesome/docs/docs/resources/changelog.md +++ b/packages/webawesome/docs/docs/resources/changelog.md @@ -39,6 +39,7 @@ During the alpha period, things might break! We take breaking changes very serio - Fixed a bug in `` and native `
` styles that made the summary hard to click [issue:684] - Improved CSS utilities and Native Styles to use [CSS layers](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer) for easier end user customization (no more specificity conflicts — your CSS wins!) - Improved native `