8000 fix(Table): favorite icon styles by adamviktora · Pull Request #6926 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(Table): favorite icon styles#6926

Merged
mcoker merged 1 commit intopatternfly:v6from
adamviktora:table-favorite-icon
Jul 29, 2024
Merged

fix(Table): favorite icon styles#6926
mcoker merged 1 commit intopatternfly:v6from
adamviktora:table-favorite-icon

Conversation

@adamviktora
Copy link
Contributor

Closes #6925

@patternfly-build
Copy link
Collaborator
patternfly-build commented Jul 25, 2024

Comment on lines 789 to +792
--#{$button}--m-plain--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
--#{$button}--m-plain__icon--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);

&:is(:hover, :focus) {
--#{$button}--m-plain--hover--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
--#{$button}--hover__icon--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!! You should be able to just replace the existing vars with yours - can you test this and see if it works as expected? The plain icon in this case only has an icon in it, so we should only need to set the __icon vars.

Suggested change
--#{$button}--m-plain--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
--#{$button}--m-plain__icon--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
&:is(:hover, :focus) {
--#{$button}--m-plain--hover--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
--#{$button}--hover__icon--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
--#{$button}--m-plain__icon--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);
&:is(:hover, :focus) {
--#{$button}--hover__icon--Color: var(--#{$table}__favorite--m-favorited--c-button--Color);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, works fine even when replaced

@adamviktora adamviktora force-pushed the table-favorite-icon branch from 4ee3b6a to e7f4584 Compare July 26, 2024 10:17
@adamviktora adamviktora requested a review from mcoker July 26, 2024 10:33
@andrew-ronaldson andrew-ronaldson self-requested a review July 26, 2024 13:57
Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LPTM!

@mcoker mcoker merged commit b78369e into patternfly:v6 Jul 29, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.205 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0