Skip to content

Commit

Permalink
Merge pull request #4056 from ProjectMirador/dupe-bg
Browse files Browse the repository at this point in the history
Remove duplicate background key from dialog scroll
  • Loading branch information
cbeer authored Dec 18, 2024
2 parents d19b3bd + 5b50e27 commit 8302554
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/ScrollIndicatedDialogContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,9 @@ const Root = styled(DialogContent, { name: 'ScrollIndicatedDialogContent', slot:
/* Shadow covers */
background: `linear-gradient(${bgcolor} 30%, rgba(255, 255, 255, 0)), `
+ `linear-gradient(rgba(255, 255, 255, 0), ${bgcolor} 70%) 0 100%, `
// Shaddows
+ 'radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), '
+ 'radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%,',
/* Shadow covers */
background: `linear-gradient(${bgcolor} 30%, rgba(255, 255, 255, 0)), ` // eslint-disable-line no-dupe-keys
+ `linear-gradient(rgba(255, 255, 255, 0), ${bgcolor} 70%) 0 100%, `
// Shaddows
// Shadows
+ 'radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), '
+ 'radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%;',

backgroundAttachment: 'local, local, scroll, scroll',
backgroundRepeat: 'no-repeat',
backgroundSize: '100% 40px, 100% 40px, 100% 14px, 100% 14px',
Expand Down

0 comments on commit 8302554

Please sign in to comment.