Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added EuiFormFieldset and EuiFormLegend components #2706

Merged
merged 8 commits into from
Jan 3, 2020

Conversation

cchaos
Copy link
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

src/components/form/form_fieldset/form_fieldset.tsx Outdated Show resolved Hide resolved

import { EuiFormFieldset } from './form_fieldset';

describe('EuiFormFieldset', () => {
Copy link
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
Contributor

@miukimiu miukimiu left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

Copy link
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
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