Skip to content

Commit

Permalink
fix(batch-styled): use opacity instead of filter to avoid chome/filte…
Browse files Browse the repository at this point in the history
…r bug
  • Loading branch information
amy-corson-ibigroup committed Jul 17, 2024
1 parent e9ed2ce commit ee48ad2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/components/form/batch-styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import styled, { css } from 'styled-components'
export const buttonPixels = 51

export const activeCss = css`
/* Make elements slightly darker on hover. */
filter: brightness(90%);
/* Make elements internal content slightly transparent on hover. */
& > * {
opacity: 90%;
}
`

const buttonTransitionCss = css`
Expand Down

0 comments on commit ee48ad2

Please sign in to comment.