Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Don't use flexbox inside a fieldset #538

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Don't use flexbox inside a fieldset #538

merged 1 commit into from
Sep 23, 2020

Conversation

SiAdcock
Copy link
Contributor

What is the purpose of this change?

There is a (recently fixed) bug in Chromium that prevents flexbox working correctly inside a fieldset. This manifests as an inability to switch the orientation of radio controls from vertical to horizontal using the flex-direction property.

Until this fix is rolled out and the next version of Chrome used more widely, we should find an alternative approach to layout within radio fieldsets.

What does this change?

  • use display: block and vertical-align: middle instead of flex for layout

Screenshots

Before

Screenshot 2020-09-22 at 15 00 14

After

Screenshot 2020-09-22 at 14 59 41

Checklist

Accessibility

Cross browser and device testing

  • Tested with touch screen device

@probot-autolabeler probot-autolabeler bot added the Radio Changes to the radio button component label Sep 22, 2020
@SiAdcock SiAdcock merged commit 10a0a5e into main Sep 23, 2020
@SiAdcock SiAdcock deleted the sa-horizontal-radio branch September 23, 2020 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Radio Changes to the radio button component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant