opensearch-project / oui

OpenSearch UI Framework
Apache License 2.0
35 stars 69 forks source link

feat: use consistent font sizes in buttons #1281

Closed virajsanghvi closed 2 months ago

virajsanghvi commented 3 months ago

Description

Sets font-size of buttons to use small font size by default, making the font size of buttons consistent across all buttons, and consistent across input sizes which they're commonly aligned with.

Type Before (v7light) After (v7light) Before (v8dark) After (v8dark)
Normal image image image image
Empty image image image image
Toggle image image image image
Button Group image image image image
Ghost image image image image
Split Button image image image image

Note: there's some weirdness with icon alignment to text, but that weirdness pre-existed for some icons + it is more due to the icon set than css as icons and text are all center aligned.

fyi: @lauralexis

Issues Resolved

N/A

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.