Skip to content

[EuiPanel] Fix selector for button element styling#4681

Merged
cchaos merged 3 commits intoelastic:masterfrom
cchaos:fix/panel-as-button
Apr 1, 2021
Merged

[EuiPanel] Fix selector for button element styling#4681
cchaos merged 3 commits intoelastic:masterfrom
cchaos:fix/panel-as-button

Conversation

@cchaos
Copy link
Contributor

@cchaos cchaos commented Apr 1, 2021

In #4662, I introduced a bug trying to scope specific <button> styles in the euiPanel() mixin. I mistakenly thought, but didn't check that my Sass nested selector would work. It didn't.

This PR fixes the block display of EuiPanel.onClick by using the :enabled selector instead.

Before
Screen Shot 2021-04-01 at 14 24 48 PM

After
Screen Shot 2021-04-01 at 14 21 59 PM

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • [ ] Added documentation
  • [ ] Checked Code Sandbox works for the any docs 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

@cchaos cchaos requested a review from chandlerprall April 1, 2021 18:24
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.

Change LGTM and decision to use :enabled makes sense. Tested locally across the 4 themes + color modes combos.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4681/

@cchaos cchaos merged commit 76facea into elastic:master Apr 1, 2021
@cchaos cchaos deleted the fix/panel-as-button branch April 1, 2021 19:11
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.

3 participants