adobe/spectrum-css

[picker] "block" => "inline" mismatch?

Opened this issue · 2 comments

min-inline-size: calc(var(--spectrum-picker-minimum-width-multiplier) * var(--mod-picker-block-size, var(--spectrum-picker-block-size)));

Here we see min-inline-size set to block-size, is that expected?

@Westbrook I can double check but as I understand it, we're calculating the minimum width based on the size of the height * the multiplier. I believe that's on purpose however I do notice there's no override for min-inline-size either. Perhaps:

 min-inline-size: var(--mod-picker-inline-size, calc(var(--spectrum-picker-minimum-width-multiplier) * var(--mod-picker-block-size, var(--spectrum-picker-block-size)))); 

I think that makes sense. If the calculation is expected, a --mod-* value to ensure we still have full control over the width without altering the height should cover the bases.

Aside: oy, it is hard to think outloud in logical properties. 🙃