Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45a5ce5

Browse filesBrowse files
committed
fix: update component styles for changes in @primer/react package
1 parent 97b54fd commit 45a5ce5
Copy full SHA for 45a5ce5

File tree

2 files changed

+12
-2
lines changed
Filter options

2 files changed

+12
-2
lines changed

‎src/components/text-input.js

Copy file name to clipboardExpand all lines: src/components/text-input.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const TextInput = styled(PrimerTextInput)`
88
*/
99
input {
1010
font-size: ${themeGet('fontSizes.2')} !important;
11+
color: ${themeGet('colors.fg.default')} !important;
1112
}
1213
1314
input::placeholder {

‎src/components/variant-select.js

Copy file name to clipboardExpand all lines: src/components/variant-select.js
+11-2Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ import * as getNav from '../util/get-nav'
44
import usePage from '../hooks/use-page'
55
import {LinkNoUnderline} from './link'
66
import useLocationChange from '../hooks/use-location-change'
7+
import styled from 'styled-components'
8+
9+
const StyledOverlay = styled(ActionMenu.Overlay)`
10+
background-color: var(--bgColor-default, #ffffff) !important;
11+
border-color: var(--borderColor-default, #d0d7de);
12+
border-width: 1px;
13+
border-style: solid;
14+
box-shadow: var(--shadow-resting-medium, 0 3px 6px rgba(140, 149, 159, 0.15));
15+
`
716

817
const VariantItem = ({title, shortName, url, active}) => (
918
<ActionList.Item as={LinkNoUnderline} to={url} state={{scrollUpdate: false}} id={shortName} active={active}>
@@ -38,7 +47,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
3847
<ActionMenu.Button aria-describedby={labelId} sx={{width: ['100%', null, 'auto']}}>
3948
{title}
4049
</ActionMenu.Button>
41-
<ActionMenu.Overlay width="auto" onEscape={() => setOpen(false)}>
50+
<StyledOverlay width="auto" onEscape={() => setOpen(false)}>
4251
<ActionList aria-labelledby={labelId}>
4352
<ActionList.Group>
4453
<ActionList.GroupHeading>Current</ActionList.GroupHeading>
@@ -53,7 +62,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
5362
))}
5463
</ActionList.Group>
5564
</ActionList>
56-
</ActionMenu.Overlay>
65+
</StyledOverlay>
5766
</ActionMenu>
5867
</>
5968
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.