spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Bug]: <sp-picker quiet> doesn't lay out properly

Open adixon-adobe opened this issue 2 years ago • 10 comments
trafficstars

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

sp-picker

Expected behavior

The test of sp-picker is vertically centered like it was previously.

Actual behavior

It looks like there's a new negative margin on the button that probably isn't intended to be there with the quiet attribute.

The result of this is that the layout of the internal

It looks like we should be able to work around this by adjusting the variable used here.

Screenshots

Here's a quick example of how things can look off:

Screen Shot 2023-02-27 at 12 35 25 PM Screen Shot 2023-02-27 at 12 36 01 PM

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

No response

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

adixon-adobe avatar Feb 27 '23 18:02 adixon-adobe

I'm guessing this is also a spectrum css bug.

adixon-adobe avatar Feb 27 '23 18:02 adixon-adobe

Currently in WIP from css team

blunteshwar avatar Sep 14 '23 15:09 blunteshwar

PR: https://github.com/adobe/spectrum-css/pull/2169

blunteshwar avatar Sep 25 '23 06:09 blunteshwar

I do not see this is a bug. The negative margin was included in recent design guidance. We do have an additional class for when the label and picker are side by side, @adixon-adobe do you still see this issue when using this class? Screenshot 2023-09-27 at 2 59 01 PM

CC: @pfulton @najikahalsema @blunteshwar

jenndiaz avatar Sep 27 '23 21:09 jenndiaz

@jenndiaz Thanks!, after using this additional class the issue is resolved!

blunteshwar avatar Oct 06 '23 09:10 blunteshwar

@jenndiaz I believe this additional class should only be applied when the label and picker are side by side but the issue is still present when the label and picker are in a top and bottom arrangement

blunteshwar avatar Oct 12 '23 06:10 blunteshwar

@pfulton @jenndiaz In accordance with our conversation, I am putting this ticket on hold and waiting for feedback on the class namespectrum-Picker--sideLabel from design team!

blunteshwar avatar Oct 12 '23 14:10 blunteshwar

@jenndiaz I believe this additional class should only be applied when the label and picker are side by side but the issue is still present when the label and picker are in a top and bottom arrangement

@blunteshwar while I think using this class could still work, I think it was not clear to me when originally looking at it what was going on in the screenshot describing the bug. Chatting in slack about different options.

jenndiaz avatar Oct 12 '23 21:10 jenndiaz

Fix for this is merged and released!

jenndiaz avatar Feb 13 '24 15:02 jenndiaz

Will take this up in SWC. Thanks @jenndiaz

Rajdeepc avatar Feb 21 '24 09:02 Rajdeepc