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

Prevent checkbox focus ring from getting clipped in tables #2770

Merged
merged 5 commits into from
Jan 17, 2020

Conversation

andreadelrio
Copy link
Contributor

@andreadelrio andreadelrio commented Jan 17, 2020

Summary

  • Updated our custom table example to use 32px as width for the checkbox column.
  • Removed unneeded hardcoded width in EuiTableHeaderCellCheckbox from EuiBasicTable.

Fixes #2757

Checklist

- [ ] Check against all themes for compatibility 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

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Noticed this was a draft after I made the comment, but it looks pretty good when I tested. Nice work.

src/components/basic_table/basic_table.tsx Outdated Show resolved Hide resolved
@andreadelrio andreadelrio marked this pull request as ready for review January 17, 2020 05:11
CHANGELOG.md Outdated
@@ -3,6 +3,10 @@
- Converted `EuiFormRow` to Typescript ([#2712](https://github.com/elastic/eui/pull/2712))
- Updated `logoAPM`, `logoSecurity` and `logoEnterpriseSearch`. Added `logoWorkplaceSearch` and `logoObservability` ([#2769](https://github.com/elastic/eui/pull/2769))

**Bug fixes**

- Removed inline width from `EuiTableHeaderCellCheckbox`in `EuiBasicTable` to prevent `EuiCheckbox`'s focus ring from getting clipped ([#2770](https://github.com/elastic/eui/pull/2770))
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe reword this to be about increasing the width... "- Increased column width on EuiTableHeaderCellCheckox in..."

Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

LGTM. Checked it out locally.

@andreadelrio andreadelrio merged commit c5f91ec into elastic:master Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New focus ring getting clipped on checkboxes in tables
3 participants