Skip to content

Commit ae6e3d7

Browse files
authoredJul 29, 2024··
Prep for high contrast theme updates (#2979)
1 parent d589604 commit ae6e3d7

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed
 

‎.changeset/curly-plums-explode.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Prep for high contrast theme updates

‎app/components/primer/alpha/segmented_control.pcss

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
display: inline-flex;
88
list-style: none;
99
background-color: var(--controlTrack-bgColor-rest, var(--color-segmented-control-bg));
10+
border-color: var(--controlTrack-borderColor-rest, transparent);
1011
border-radius: var(--borderRadius-medium);
1112
}
1213

‎app/components/primer/alpha/tool_tip.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ class ToolTipElement extends HTMLElement {
7171
--tooltip-left: var(--tool-tip-position-left, 0);
7272
padding: var(--overlay-paddingBlock-condensed) var(--overlay-padding-condensed) !important;
7373
font: var(--text-body-shorthand-small);
74-
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis)) !important;
74+
color: var(--tooltip-fgColor, var(--fgColor-onEmphasis)) !important;
7575
text-align: center;
7676
text-decoration: none;
7777
text-shadow: none;
7878
text-transform: none;
7979
letter-spacing: normal;
8080
word-wrap: break-word;
8181
white-space: pre;
82-
background: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)) !important;
82+
background: var(--tooltip-bgColor, var(--bgColor-emphasis)) !important;
8383
border-radius: var(--borderRadius-medium);
8484
border: 0 !important;
8585
opacity: 0;

‎app/components/primer/beta/state.pcss

+4
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,25 @@
2020
color: var(--fgColor-onEmphasis);
2121
background-color: var(--bgColor-neutral-emphasis);
2222
border: var(--borderWidth-thin) solid transparent;
23+
box-shadow: var(--boxShadow-thin) var(--borderColor-neutral-emphasis);
2324
}
2425

2526
.State--open {
2627
color: var(--fgColor-onEmphasis);
2728
background-color: var(--bgColor-open-emphasis, var(--color-open-emphasis));
29+
box-shadow: var(--boxShadow-thin) var(--borderColor-open-emphasis);
2830
}
2931

3032
.State--merged {
3133
color: var(--fgColor-onEmphasis);
3234
background-color: var(--bgColor-done-emphasis, var(--color-done-emphasis));
35+
box-shadow: var(--boxShadow-thin) var(--borderColor-done-emphasis);
3336
}
3437

3538
.State--closed {
3639
color: var(--fgColor-onEmphasis);
3740
background-color: var(--bgColor-closed-emphasis, var(--color-closed-emphasis));
41+
box-shadow: var(--boxShadow-thin) var(--borderColor-closed-emphasis);
3842
}
3943

4044
/* Small 24px */

0 commit comments

Comments
 (0)
Please sign in to comment.