Skip to content

Commit

Permalink
Better button masking
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Aug 24, 2023
1 parent 39ea75b commit 2a40798
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
background: none;

position: relative;
overflow: hidden;
isolation: isolate;

/* Masking works WAY better than below */
/*overflow: none;*/
mask: linear-gradient(#000 0 0);

border: none;
border-radius: var(--borderRadius);
padding: 0;
Expand Down

0 comments on commit 2a40798

Please sign in to comment.