Skip to content

Commit

Permalink
Merge 7306025 into f099cf8
Browse files Browse the repository at this point in the history
  • Loading branch information
beaesguerra authored Jun 24, 2024
2 parents f099cf8 + 7306025 commit 4d8d453
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-swans-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@khanacademy/wonder-blocks-button": patch
---

Fix inconsistent underline height in the active state of the tertiary button.
2 changes: 1 addition & 1 deletion __docs__/wonder-blocks-button/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const Tertiary: StoryComponentType = {
// eslint-disable-next-line testing-library/prefer-user-event
await fireEvent.mouseDown(button);
await expect(innerLabel).toHaveStyle("color: rgb(27, 80, 179)");
await expect(computedStyleLabel.height).toBe("1px");
await expect(computedStyleLabel.height).toBe("2px");
await expect(computedStyleLabel.color).toBe("rgb(27, 80, 179)");
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export const _generateStyles = (
active: {
color: light ? fadedColor : activeColor,
":after": {
height: 1,
height: theme.size.height.tertiaryHover,
background: light ? fadedColor : activeColor,
},
},
Expand Down

0 comments on commit 4d8d453

Please sign in to comment.