Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(elements)!: table padding from px to em #123

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Feb 12, 2023

Overview

Table styles were based off of design. Cell padding should be relative.

BREAKING CHANGE:

  • Tables with font size > 12px get bigger cell padding.
  • Tables with font size < 12px get smaller cell padding.

Tables with font size = 12px get the same cell padding.

Related

None

Changes

  • changed to em not px for cell padding
  • changed cell padding values duplication to use variables

Testing / UI

font-size before after
12px before (at 12px) after (at 12px)
16px before (at 16px) after (at 16px)

Table styles were based off of design. Cell padding should be relative.

BREAKING CHANGE: Tables at font diff than 12px get new cell padding e.g.
- font-size > 12px = bigger cell padding
- font-size < 12px = smaller cell padding
@wesleyboar wesleyboar marked this pull request as ready for review February 12, 2023 13:30
@wesleyboar wesleyboar merged commit c00d283 into main Feb 12, 2023
@wesleyboar wesleyboar deleted the bugfix/table-cell-padding branch February 12, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant