-
Notifications
You must be signed in to change notification settings - Fork 12
Add variable for tertiary button hover override #1311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8705307
abe9a1c
5afe4a0
c926590
b20785e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,16 +52,18 @@ | |
| pre { | ||
| @include typography.style-1(); | ||
|
|
||
| background-color: $rpf-grey-700; | ||
| background-color: var(--code-background-color, #{$rpf-grey-700}); | ||
| border: 1px solid $rpf-grey-600; | ||
| border-radius: 8px; | ||
| padding: $space-0-5 $space-1; | ||
| overflow: auto; | ||
| margin: $space-1 0; | ||
| scrollbar-color: var(--code-block-scrollbar-color); | ||
| scrollbar-color: var(--code-block-scrollbar-color, auto); | ||
|
|
||
| code { | ||
| padding-inline: 0; | ||
| background-color: var(--code-background-color, #{$rpf-grey-700}); | ||
| color: var(--code-text-color, #{$rpf-white}); | ||
| } | ||
|
Comment on lines
52
to
67
|
||
| } | ||
|
|
||
|
|
@@ -107,7 +109,7 @@ | |
|
|
||
| .line-highlight { | ||
| margin-block-start: 0.5rem; | ||
| background-color: $rpf-white; | ||
| background-color: var(--code-block-line-highlight-color, #{$rpf-white}); | ||
| mix-blend-mode: difference; | ||
| min-inline-size: 100%; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -156,5 +156,18 @@ code { | |||||||||||||
| .project-instructions { | ||||||||||||||
| pre { | ||||||||||||||
| --code-block-scrollbar-color: auto; | ||||||||||||||
| --code-background-color: #{$rpf-grey-700}; | ||||||||||||||
| --code-text-color: #{$rpf-white}; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .line-highlight { | ||||||||||||||
| --code-block-line-highlight-color: #{$rpf-white}; | ||||||||||||||
| } | ||||||||||||||
|
Comment on lines
156
to
+165
|
||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| .btn--tertiary { | ||||||||||||||
| &:hover, | ||||||||||||||
| .btn-outer:hover & { | ||||||||||||||
| --tertiary-btn-hover-color: inherit; | ||||||||||||||
| } | ||||||||||||||
| } | ||||||||||||||
|
Comment on lines
+168
to
173
|
||||||||||||||
| .btn--tertiary { | |
| &:hover, | |
| .btn-outer:hover & { | |
| --tertiary-btn-hover-color: inherit; | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new hover background custom property name (
--tertiary-btn-hover-color) doesn't follow the existing button theming variable naming pattern used elsewhere in this file (e.g.--rpf-button-...). For consistency and discoverability, consider renaming it to align with the existing scheme (for example, a--rpf-button-tertiary-*-hovervariable) and updating the setter accordingly.