Conversation
Put buttons last in markup; move clarification message behind a Popover
2ff367e to
6dedf4c
Compare
Codecov Report
@@ Coverage Diff @@
## master #2217 +/- ##
==========================================
+ Coverage 22.99% 23.81% +0.82%
==========================================
Files 141 142 +1
Lines 4393 4531 +138
Branches 746 771 +25
==========================================
+ Hits 1010 1079 +69
- Misses 2852 2904 +52
- Partials 531 548 +17
Continue to review full report at Codecov.
|
| { __( 'Usage data is completely anonymous, does not include your post content, and will only be used to improve the editor.' ) } | ||
| </Popover> | ||
| ) } | ||
| </Button> |
There was a problem hiding this comment.
I'd move the popover out from the button and use aria-expanded on the button based on the showInfoPopover state. See for example post-visibility.
There was a problem hiding this comment.
I think then we need another container element with position: relative to hold the button and the popover.
There was a problem hiding this comment.
Yep, I think that's the reason why a wrapper element was added around button and popover in the post-visibility.
e2956fe to
3601ee3
Compare
|
Thanks! |

Fixes #2215.
Popovercomponentariaattributes for the "More info" buttonedit: outdated screenshots removed; see below