Skip to content

Commit 69dbd1a

Browse files
committed
feat(high contrast): add border to some hover states
1 parent 9c7a38b commit 69dbd1a

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

packages/module/sass/react-catalog-view-extension/_filter-side-panel.scss

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,26 @@
3333

3434
&:hover {
3535
background-color: var(--pf-t--global--background--color--action--plain--hover);
36-
}
36+
position: relative;
37+
38+
&::after {
39+
content: '';
40+
position: absolute;
41+
left: 0;
42+
right: 0;
43+
top: 0;
44+
bottom: 0;
45+
border-width: var(--pf-t--global--border--width--high-contrast--regular);
46+
border-style: solid;
47+
border-color: transparent;
48+
border-radius: inherit;
49+
pointer-events: none;
50+
}
51+
52+
&::after {
53+
border-color: var(--pf-t--global--border--color--high-contrast);
54+
}
55+
}
3756

3857
.pf-v6-c-check__label {
3958
min-height: var(--pf-t--global--spacer--md);

packages/module/sass/react-catalog-view-extension/_vertical-tabs.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,30 @@
2222
width: 100%;
2323
word-break: break-word;
2424
border-radius: var(--pf-t--global--border--radius--small);
25+
position: relative;
26+
27+
&::after {
28+
content: '';
29+
position: absolute;
30+
left: 0;
31+
right: 0;
32+
top: 0;
33+
bottom: 0;
34+
border-width: var(--pf-t--global--border--width--high-contrast--regular);
35+
border-style: solid;
36+
border-color: transparent;
37+
border-radius: inherit;
38+
pointer-events: none;
39+
}
2540

2641
&:hover,
2742
&:focus {
2843
background-color: var(--pf-t--global--background--color--action--plain--hover);
2944
text-decoration: none;
45+
46+
&::after {
47+
border-color: var(--pf-t--global--border--color--high-contrast);
48+
}
3049
}
3150

3251
&.no-wrap {

packages/module/src/components/react-catalog-view-extension.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)