Skip to content

Commit

Permalink
improve test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jul 23, 2024
1 parent 22aa8b1 commit e65f61a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const buttonStyles = css`
border: none;
border-radius: 5px;
cursor: pointer;
${({ $active }) => $active && css`
background-color: #f0f0f0;
max-width: ${({ $letters }) => $letters * 15}px;
`}
@media (max-width: 600px) {
${({ $active }) => $active && css`
background-color: #f0f0f0;
max-width: ${({ $letters }) => $letters * 15}px;
`}
}
width: ${({ $letters }) => $letters * 10}px;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ const buttonStyles = /*YAK Extracted CSS:
cursor: pointer;
}
.buttonStyles__$active {
background-color: #f0f0f0;
max-width: var(--buttonStyles__max-width_o1wkyu);
@media (max-width: 600px) {
background-color: #f0f0f0;
max-width: var(--buttonStyles__max-width_o1wkyu);
}
}
.buttonStyles {
width: var(--buttonStyles__width_o1wkyu);
Expand Down

0 comments on commit e65f61a

Please sign in to comment.