Skip to content

Added EuiFormFieldset and EuiFormLegend components#2706

Merged
cchaos merged 8 commits intoelastic:masterfrom
cchaos:form-fieldset-and-legend
Jan 3, 2020
Merged

Added EuiFormFieldset and EuiFormLegend components#2706
cchaos merged 8 commits intoelastic:masterfrom
cchaos:form-fieldset-and-legend

Conversation

@cchaos
Copy link
Copy Markdown
Contributor

@cchaos cchaos commented Dec 19, 2019

In order to support the a11y fixes for radio and checkbox groups, I needed to create fieldset and legend components for re-usability.

Screen Shot 2019-12-19 at 17 36 18 PM

It also moves some of the form label styles to a global mixin.

Checklist

  • Check against all themes for compatability in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately


import { EuiFormFieldset } from './form_fieldset';

describe('EuiFormFieldset', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of these tests should provide children as well so the snapshot can help catch any regression there.

Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@cchaos cchaos requested a review from chandlerprall January 2, 2020 16:08
Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! Pulled & tested locally

@chandlerprall
Copy link
Copy Markdown
Contributor

jenkins test this flaky test

@cchaos cchaos merged commit b7cca07 into elastic:master Jan 3, 2020
@cchaos cchaos deleted the form-fieldset-and-legend branch January 3, 2020 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants