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

Idea: group related properties together in shorthands #353

Open
tesseralis opened this issue Jun 8, 2022 · 0 comments
Open

Idea: group related properties together in shorthands #353

tesseralis opened this issue Jun 8, 2022 · 0 comments
Labels
Feature New feature or request Inputs Primitive inputs like number scrubber, select, etc

Comments

@tesseralis
Copy link
Contributor

There are some properties that seem like they should be part of shorthands but aren't:

It might be worthwhile to still treat those inputs as part of the shorthand input in our UI, and generate the separated UI. So a style object like:

{
  color: '#ff00ff',
  line: 'underline',
  style: 'solid',
  thickness: '1px',
  skipInk: 'all',
}

would generate the style:

.my-style {
  text-decoration: #ff00ff underline solid 1px;
  text-decoration-skip-ink: all;
}

This is especially helpful for something like background-blend-mode, which is an array property that can get confusing to keep track off when edited separately from the main background property

@johno johno added Feature New feature or request Inputs Primitive inputs like number scrubber, select, etc labels Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Inputs Primitive inputs like number scrubber, select, etc
Projects
None yet
Development

No branches or pull requests

2 participants