Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/text-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const TextInput = styled(PrimerTextInput)`
*/
input {
font-size: ${themeGet('fontSizes.2')} !important;
color: ${themeGet('colors.fg.default')} !important;
}

input::placeholder {
Expand Down
13 changes: 11 additions & 2 deletions src/components/variant-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import * as getNav from '../util/get-nav'
import usePage from '../hooks/use-page'
import {LinkNoUnderline} from './link'
import useLocationChange from '../hooks/use-location-change'
import styled from 'styled-components'

const StyledOverlay = styled(ActionMenu.Overlay)`
background-color: var(--bgColor-default, #ffffff) !important;
border-color: var(--borderColor-default, #d0d7de);
border-width: 1px;
border-style: solid;
box-shadow: var(--shadow-resting-medium, 0 3px 6px rgba(140, 149, 159, 0.15));
`

const VariantItem = ({title, shortName, url, active}) => (
<ActionList.Item as={LinkNoUnderline} to={url} state={{scrollUpdate: false}} id={shortName} active={active}>
Expand Down Expand Up @@ -38,7 +47,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
<ActionMenu.Button aria-describedby={labelId} sx={{width: ['100%', null, 'auto']}}>
{title}
</ActionMenu.Button>
<ActionMenu.Overlay width="auto" onEscape={() => setOpen(false)}>
<StyledOverlay width="auto" onEscape={() => setOpen(false)}>
<ActionList aria-labelledby={labelId}>
<ActionList.Group>
<ActionList.GroupHeading>Current</ActionList.GroupHeading>
Expand All @@ -53,7 +62,7 @@ const VariantMenu = ({title, latest, current, prerelease, legacy}) => {
))}
</ActionList.Group>
</ActionList>
</ActionMenu.Overlay>
</StyledOverlay>
</ActionMenu>
</>
)
Expand Down
Loading