Skip to content

Commit

Permalink
feat: use consistent font sizes in buttons (#1281)
Browse files Browse the repository at this point in the history
* feat: use consistent font sizes in buttons

Signed-off-by: Viraj Sanghvi <[email protected]>

* Update button groups to use small font size and changelog

Signed-off-by: Viraj Sanghvi <[email protected]>

* Update button font-size for v7

Signed-off-by: Viraj Sanghvi <[email protected]>

---------

Signed-off-by: Viraj Sanghvi <[email protected]>
Signed-off-by: Viraj Sanghvi <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
  • Loading branch information
virajsanghvi and ashwin-pc authored Jul 11, 2024
1 parent 3556698 commit ae87c7e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
- [Next Theme] Set base font size to 18px ([#1221](https://github.com/opensearch-project/oui/pull/1221))
- [Next Theme] Revert `font-weight` of OuiButton to normal from semi-bold ([#1222](https://github.com/opensearch-project/oui/pull/1222))
- Convert shorthand palette colors to full 6-char hex ([#1262](https://github.com/opensearch-project/oui/pull/1262))
- Use small font size consistently in buttons and button groups ([#1281](https://github.com/opensearch-project/oui/pull/1281))
- Make Super Update Button secondary instead of primary ([#1286](https://github.com/opensearch-project/oui/pull/1286))
- Use faster animations for modals, popovers, and tooltips ([#1282](https://github.com/opensearch-project/oui/pull/1282))
- Adjust popover and context menu title styles and tooltip padding ([#1283](https://github.com/opensearch-project/oui/pull/1283))
- Make Super Update Button secondary instead of primary ([#1286](https://github.com/opensearch-project/oui/pull/1286))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.ouiButtonGroupButton {
@include ouiButtonBase;
@include ouiFont;
@include ouiFontSize;
@include ouiFontSizeS;

// sass-lint:disable-block indentation
transition: background-color $ouiAnimSpeedNormal ease-in-out,
Expand Down
2 changes: 1 addition & 1 deletion src/global_styling/mixins/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@mixin ouiButton {
@include ouiButtonBase;
@include ouiFont;
@include ouiFontSize;
@include ouiFontSizeS;

text-decoration: none;
border: solid 1px transparent;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/oui-next/global_styling/mixins/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@mixin ouiButton {
@include ouiButtonBase;
@include ouiFont;
@include ouiFontSize;
@include ouiFontSizeS;

text-decoration: none;
border: solid 1px transparent;
Expand Down

0 comments on commit ae87c7e

Please sign in to comment.