You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds .pf-m-favorite as the class that always needs to be on a favorite button
Adds .pf-m-favorited that toggles a .pf-m-favorite button between favorited/not-favorited
Inside of the button__icon container, adds 2 new elements that both need to be rendered at the same time. CSS hides/shows the correct icon.
button__icon-favorite - this will hold <OutlinedStarIcon>, for the non-favorited state
button__icon-favorited - this will hold <StarIcon>, for the favorited state
Toggling .pf-m-favorited sets the appropriate colors and swaps the visibility of the star and outlined star icons
@andrew-ronaldson@srambach are there any limitations to which kind of button this should apply to? Technically it could apply to any button, though there may be color contrast issues if the button doesn't have a transparent background - so all buttons except primary, warning, and danger. Or is this only intended to be used with plain buttons?
The text was updated successfully, but these errors were encountered:
Main core PR - patternfly/patternfly#7379
Animate between filled/unfilled icon PR - patternfly/patternfly#7492
TL;DR:
.pf-m-favorite
as the class that always needs to be on a favorite button.pf-m-favorited
that toggles a.pf-m-favorite
button between favorited/not-favoritedbutton__icon
container, adds 2 new elements that both need to be rendered at the same time. CSS hides/shows the correct icon.button__icon-favorite
- this will hold<OutlinedStarIcon>
, for the non-favorited statebutton__icon-favorited
- this will hold<StarIcon>
, for the favorited stateToggling
.pf-m-favorited
sets the appropriate colors and swaps the visibility of the star and outlined star icons@andrew-ronaldson @srambach are there any limitations to which kind of button this should apply to? Technically it could apply to any button, though there may be color contrast issues if the button doesn't have a transparent background - so all buttons except primary, warning, and danger. Or is this only intended to be used with plain buttons?
The text was updated successfully, but these errors were encountered: