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

chore: Refine WDS dimension tokens #31158

Merged
merged 5 commits into from Feb 19, 2024
Merged

Conversation

ichik
Copy link
Contributor

@ichik ichik commented Feb 15, 2024

Closes #30890

image

This is not a full refinement, because we set height/block-size explicitly for some of our widgets with styles such as these. As such, changes to e.g. inner spacing only affect the horizontal/inline size and not the vertical/block one since the block padding doesn't affect an element that has block size set explicitly.
Ideally, we should switch to implicit sizing to fully embrace multi-dimensional sizing and density theming control over the widget dimensions (i.e. control it with padding that consumes the tokens of the inner spacing scale). If that is not feasible I'd like to know why and how we can closely tie together the sizing scale with inner spacing.

@ichik ichik added skip-changelog Adding this label to a PR prevents it from being listed in the changelog skip-testPlan Does not require QA intervention or approval process Anvil POD Issue related to Anvil project WDS team labels Feb 15, 2024
@ichik ichik self-assigned this Feb 15, 2024
@ichik ichik marked this pull request as ready for review February 16, 2024 07:38
Copy link
Collaborator

@KelvinOm KelvinOm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are waiting for improvements for typography.

@ichik ichik force-pushed the chore/refine-wds-dimension-tokens branch from 0d16dc0 to a04e90a Compare February 19, 2024 11:30
@ichik
Copy link
Contributor Author

ichik commented Feb 19, 2024

More things could be improved (i.e., title variants), but I suggest we merge this as a stop-gap since we also don't have a conclusion on widgets' block sizing. I'd rather move on it iteratively.

image
image

@KelvinOm KelvinOm merged commit c8e8187 into release Feb 19, 2024
19 checks passed
@KelvinOm KelvinOm deleted the chore/refine-wds-dimension-tokens branch February 19, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Anvil POD Issue related to Anvil project skip-changelog Adding this label to a PR prevents it from being listed in the changelog skip-testPlan Does not require QA intervention or approval process WDS team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fine tune sizing and spacing tokens
2 participants