You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### WHY are these changes introduced?
Through the rebuilding of `ChoiceList`
(#7354) I have found there are
a few updates that would make `AlphaStack` more flexible.
### WHAT is this pull request doing?
- Make `AlphaStack` polymorphic and allow it to be a `ul` or a
`fieldset` in addition to a `div`. Both those elements are used to
contain a list or group of elements that may require equal spacing. This
allows `AlphaStack` to be used in those instances while still providing
semantic markup.
- Include some reset styles for when the `ul` element is set on
`AlphaStack` to override default browser styling for `ul`. This removes
margin and padding which makes sense since spacing should be handled by
layout components. It also removes the default `ul` bullet. Is this too
opinionated? Are there use cases where `AlphaStack` would be used for
spacing items in a list with the default browser bullet?
<img width="278" alt="Screen Shot 2022-10-17 at 3 00 12 PM"
src="https://user-images.githubusercontent.com/3474483/196292082-c68d8c07-8d8b-4336-8a92-8e5363f04894.png">|<img
width="249" alt="Screen Shot 2022-10-17 at 3 00 24 PM"
src="https://user-images.githubusercontent.com/3474483/196292137-e906bc45-e7f6-4729-b2d9-09f2295380ac.png">
:----:|:----:
Default `ul` styles|Reset `ul` styles
- Update `AlphaStack` to allow responsive spacing. The `spacing` prop
can now accept an object with a breakpoint and the spacing value.
Co-authored-by: Aaron Casanova <32409546+aaronccasanova@users.noreply.github.com>
Co-authored-by: Kyle Durand <6844391+kyledurand@users.noreply.github.com>
0 commit comments