Skip to content

Commit cfd4a6b

Browse files
owlstronautwraithgar
authored andcommitted
fix: update component styles for changes in @primer/react package
1 parent 3374eda commit cfd4a6b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/components/text-input.js

Lines 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

Lines 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)