mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Only use button active item focus in modal buttons
This is useful for keyboard tabbing but we don't want it on all items as it creates a weird effect. Fixes: https://github.com/omnivore-app/omnivore/issues/1197
This commit is contained in:
parent
2012c69053
commit
47b8299625
3 changed files with 7 additions and 7 deletions
|
|
@ -29,9 +29,6 @@ export const Button = styled('button', {
|
|||
color: '$omnivoreGray',
|
||||
bg: '$omnivoreCtaYellow',
|
||||
p: '10px 13px',
|
||||
'&:focus': {
|
||||
outline: '5px auto -webkit-focus-ring-color',
|
||||
},
|
||||
},
|
||||
ctaOutlineYellow: {
|
||||
boxSizing: 'border-box',
|
||||
|
|
@ -48,9 +45,6 @@ export const Button = styled('button', {
|
|||
color: '$utilityTextDefault',
|
||||
bg: 'transparent',
|
||||
p: '9px 12px',
|
||||
'&:focus': {
|
||||
outline: '5px auto -webkit-focus-ring-color',
|
||||
},
|
||||
},
|
||||
ctaLightGray: {
|
||||
border: 0,
|
||||
|
|
|
|||
|
|
@ -90,6 +90,12 @@ export const ModalButtonBar = (props: ModalButtonBarProps) => {
|
|||
gap: '10px',
|
||||
width: '100%',
|
||||
height: '80px',
|
||||
'input:focus': {
|
||||
outline: '5px auto -webkit-focus-ring-color',
|
||||
},
|
||||
'button:focus': {
|
||||
outline: '5px auto -webkit-focus-ring-color',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Button style={'ctaOutlineYellow'} type="button" onClick={(event) => {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ export function EditTitleModal(props: EditTitleModalProps): JSX.Element {
|
|||
<HStack distribution="end" css={{ mt: '12px', width: '100%' }}>
|
||||
<Button
|
||||
onClick={() => props.onOpenChange(false)}
|
||||
style="ctaGray"
|
||||
style="ctaOutlineYellow"
|
||||
css={{ mr: '16px' }}
|
||||
>
|
||||
Cancel
|
||||
|
|
|
|||
Loading…
Reference in a new issue