Skip to content

Commit

Permalink
Prep for high contrast theme updates (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank authored Jul 29, 2024
1 parent d589604 commit ae6e3d7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-plums-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Prep for high contrast theme updates
1 change: 1 addition & 0 deletions app/components/primer/alpha/segmented_control.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
display: inline-flex;
list-style: none;
background-color: var(--controlTrack-bgColor-rest, var(--color-segmented-control-bg));
border-color: var(--controlTrack-borderColor-rest, transparent);
border-radius: var(--borderRadius-medium);
}

Expand Down
4 changes: 2 additions & 2 deletions app/components/primer/alpha/tool_tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ class ToolTipElement extends HTMLElement {
--tooltip-left: var(--tool-tip-position-left, 0);
padding: var(--overlay-paddingBlock-condensed) var(--overlay-padding-condensed) !important;
font: var(--text-body-shorthand-small);
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis)) !important;
color: var(--tooltip-fgColor, var(--fgColor-onEmphasis)) !important;
text-align: center;
text-decoration: none;
text-shadow: none;
text-transform: none;
letter-spacing: normal;
word-wrap: break-word;
white-space: pre;
background: var(--bgColor-emphasis, var(--color-neutral-emphasis-plus)) !important;
background: var(--tooltip-bgColor, var(--bgColor-emphasis)) !important;
border-radius: var(--borderRadius-medium);
border: 0 !important;
opacity: 0;
Expand Down
4 changes: 4 additions & 0 deletions app/components/primer/beta/state.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,25 @@
color: var(--fgColor-onEmphasis);
background-color: var(--bgColor-neutral-emphasis);
border: var(--borderWidth-thin) solid transparent;
box-shadow: var(--boxShadow-thin) var(--borderColor-neutral-emphasis);
}

.State--open {
color: var(--fgColor-onEmphasis);
background-color: var(--bgColor-open-emphasis, var(--color-open-emphasis));
box-shadow: var(--boxShadow-thin) var(--borderColor-open-emphasis);
}

.State--merged {
color: var(--fgColor-onEmphasis);
background-color: var(--bgColor-done-emphasis, var(--color-done-emphasis));
box-shadow: var(--boxShadow-thin) var(--borderColor-done-emphasis);
}

.State--closed {
color: var(--fgColor-onEmphasis);
background-color: var(--bgColor-closed-emphasis, var(--color-closed-emphasis));
box-shadow: var(--boxShadow-thin) var(--borderColor-closed-emphasis);
}

/* Small 24px */
Expand Down

0 comments on commit ae6e3d7

Please sign in to comment.