-
Notifications
You must be signed in to change notification settings - Fork 13
feat(high contrast): add border to some hover states #91
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
Merged
+1,988
−771
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
69dbd1a
feat(high contrast): add border to some hover states
srambach a54b4a3
feat(high contrast): update PF version
srambach c196cd7
feat(high contrast): adjust versions used and enable switcher
srambach b705114
feat(high contrast): remove bg on filter, fix styles on props side panel
srambach 9e794ed
feat(high contrast): use hc tokens
srambach 5d3c295
feat(high contrast): fix indentation
srambach b1fdfc5
feat(high contrast): remove comments
srambach 43eb2ba
feat(high contrast): fix horizontal scroll
srambach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,28 +5,48 @@ | |||||
|
|
||||||
| .vertical-tabs-pf { | ||||||
| margin-block-end: 0; | ||||||
| padding-block-start: var(--pf-t--global--spacer--xs); | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| .vertical-tabs-pf-tab { | ||||||
| margin-block-start: var(--pf-t--global--spacer--sm); | ||||||
| padding-inline-start: 0; | ||||||
| position: relative; | ||||||
|
|
||||||
| & .vertical-tabs-pf-tab { | ||||||
| margin-inline-start: var(--pf-t--global--spacer--md); | ||||||
| } | ||||||
|
|
||||||
| > a { | ||||||
| color: var( --pf-t--global--text--color--regular); | ||||||
| text-decoration: none; | ||||||
| display: inline-block; | ||||||
| font-size: 13px; | ||||||
| padding: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--md); | ||||||
| display: block; | ||||||
| margin-inline-start: var(--pf-t--global--spacer--md); | ||||||
| padding: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--sm); | ||||||
| vertical-align: top; | ||||||
| width: 100%; | ||||||
| word-break: break-word; | ||||||
| border-radius: var(--pf-t--global--border--radius--small); | ||||||
| position: relative; | ||||||
|
|
||||||
| &::after { | ||||||
| content: ''; | ||||||
| position: absolute; | ||||||
| inset: 0; | ||||||
| border: var(--pf-t--global--border--width--action--plain--default) solid var(--pf-t--global--border--color--high-contrast); | ||||||
| border-radius: inherit; | ||||||
| pointer-events: none; | ||||||
| } | ||||||
|
|
||||||
| &:hover, | ||||||
| &:focus { | ||||||
| background-color: var(--pf-t--global--background--color--action--plain--hover); | ||||||
| text-decoration: none; | ||||||
|
|
||||||
| &::after { | ||||||
| border-color: var(--pf-t--global--border--color--high-contrast); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| border-width: var(--pf-t--global--border--width--action--plain--hover); | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| &.no-wrap { | ||||||
|
|
@@ -42,28 +62,19 @@ | |||||
| } | ||||||
|
|
||||||
| &.active { | ||||||
| > a { | ||||||
|
|
||||||
| &::before { | ||||||
| background: var( --pf-t--global--border--color--brand--clicked); | ||||||
| content: "\00a0"; // | ||||||
| left: 0; | ||||||
| inset-inline-start: 0; | ||||||
| inset-block-start: var(--pf-t--global--spacer--xs); | ||||||
| position: absolute; | ||||||
| width: var(--pf-t--global--border--width--extra-strong); | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| &:first-of-type { | ||||||
| margin-block-start: 0; | ||||||
| } | ||||||
|
|
||||||
| > .vertical-tabs-pf { | ||||||
| > .vertical-tabs-pf-tab { | ||||||
| position: initial; | ||||||
| padding-inline-start: var(--pf-t--global--spacer--md); | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| .vertical-tabs-pf.restrict-tabs { | ||||||
|
|
||||||
2 changes: 1 addition & 1 deletion
2
packages/module/src/components/react-catalog-view-extension.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@lboehling @thatblindgeye I didn't add the hover background, just the outline. Git blame points to a change by @nicolethoen - anyone know why this was added?
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.
There is this issue that might handle this: #88
Uh oh!
There was an error while loading. Please reload this page.
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.
So it looks like maybe it was applied to the filter side panel by accident and was only meant to be the vertical tabs?
#73 comments talk about a hover background on vertical tabs but it was also applied to the filter side panel, perhaps erroneously?