Skip to content

Commit

Permalink
fix(back-to-top): hover color (#2783)
Browse files Browse the repository at this point in the history
* fix(back-to-top): hover color

* fix(back-to-top): hover color

* chore: update contributors list

---------

Co-authored-by: Ajinkya Shinde <[email protected]>
  • Loading branch information
ajinkya359 and Ajinkya Shinde authored Jun 21, 2024
1 parent 492a901 commit 4995067
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-boxes-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@patternfly/elements": patch
---

`<pf-back-to-top>`: fix hover color
3 changes: 2 additions & 1 deletion elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@
"Nikki Massaro Kauffman <[email protected]> (https://github.com/nikkimk)",
"Steven Spriggs <[email protected]",
"castastrophe (https://github.com/castastrophe)",
"Wes Ruvalcaba"
"Wes Ruvalcaba",
"Ajinyka Shinde <[email protected]>"
],
"dependencies": {
"@lit/context": "^1.1.0",
Expand Down
10 changes: 10 additions & 0 deletions elements/pf-back-to-top/pf-back-to-top.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ a {
gap: var(--pf-c-button__icon--m-end--MarginLeft, var(--pf-global--spacer--xs, 0.25rem));
}

a:hover {
--pf-c-button--m-primary--Color: var(--pf-c-button--m-primary--hover--Color, var(--pf-global--Color--light-100, #fff));
--pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--hover--BackgroundColor, var(--pf-global--primary-color--200, #004080));
}

a:focus {
--pf-c-button--m-primary--Color: var(--pf-c-button--m-primary--hover--Color, var(--pf-global--Color--light-100,#fff));
--pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--hover--BackgroundColor, var(--pf-global--primary-color--200, #004080));
}

[part="trigger"][hidden] {
display: none;
}
Expand Down

0 comments on commit 4995067

Please sign in to comment.