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

Color Handle delivery sensitive to CSS inclusion order. #2139

Open
Westbrook opened this issue Sep 1, 2023 · 1 comment
Open

Color Handle delivery sensitive to CSS inclusion order. #2139

Westbrook opened this issue Sep 1, 2023 · 1 comment
Assignees
Labels
bug Results from a bug in the CSS implementation

Comments

@Westbrook
Copy link
Contributor

The mark up for a Color Handle is as follows:

<div class="spectrum-ColorHandle spectrum-OpacityCheckerboard" is-disabled" style="--spectrum-picked-color: rgba(255, 0, 0, 0.5); position: absolute; inset-block: 50%; inset-inline: 50%">
  <div class="spectrum-ColorHandle-inner"></div>
</div>

With both the spectrum-ColorHandle and the spectrum-OpacityCheckerboard classes applied to the host element the rules within those selectors will race depending on how CSS is deployed in a consuming application. Specifically, the size rules for .spectrum-OpacityCheckerboard:

.spectrum-OpacityCheckerboard {
    inline-size: 100%;
    block-size: 100%;
}

Can overwright those of .spectrum-ColorHandle:

.spectrum-ColorHandle {
    inline-size: var(--mod-colorhandle-size, var(--spectrum-colorhandle-size));
    block-size: var(--mod-colorhandle-size, var(--spectrum-colorhandle-size));
}
@Westbrook Westbrook added the bug Results from a bug in the CSS implementation label Sep 1, 2023
@pfulton
Copy link
Collaborator

pfulton commented Sep 5, 2023

Tracking this in Jira here: https://jira.corp.adobe.com/browse/CSS-587

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Results from a bug in the CSS implementation
Projects
None yet
Development

No branches or pull requests

4 participants
@pfulton @Westbrook @castastrophe and others