Opened 10 years ago
Closed 10 years ago
#33260 closed defect (bug) (fixed)
Customizer: misaligned Widgets reorder button
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.3 | Priority: | lowest |
Severity: | trivial | Version: | 4.3 |
Component: | Customize | Keywords: | has-patch commit |
Focuses: | ui | Cc: |
Attachments (9)
Change History (48)
This ticket was mentioned in Slack in #accessibility by tomharrigan. View the logs.
10 years ago
This ticket was mentioned in Slack in #core by obenland. View the logs.
10 years ago
#6
follow-up:
↓ 7
@
10 years ago
I think I'd rather change .reorder-toggle
for widgets to use a button like in Menus. @TomHarrigan, would you mind refreshing your patch and see how big of a change it would be?
#7
in reply to:
↑ 6
@
10 years ago
Replying to obenland:
I think I'd rather change
.reorder-toggle
for widgets to use a button like in Menus. @TomHarrigan, would you mind refreshing your patch and see how big of a change it would be?
Sure, @afercia mentioned that in #accessibility, will take a look at it during the hack night ;)
#9
@
10 years ago
- Keywords needs-patch added; has-patch removed
@TomHarrigan, have you had a chance to look into creating a new patch?
#10
@
10 years ago
@obenland started on, got a lil caught up with work, will finish out and submit today if that works
@
10 years ago
Implement fix using button elements, aria tags to be consistent with Menu Customizer. Fix typo from 33260.3.diff
This ticket was mentioned in Slack in #accessibility by tomharrigan. View the logs.
10 years ago
#12
follow-up:
↓ 13
@
10 years ago
Notw that it's a button and has a type="button"
attribute we should also review the events attached, needs just a click
, no keys filtering and no preventDefault()
:)
#13
in reply to:
↑ 12
;
follow-up:
↓ 14
@
10 years ago
Replying to afercia:
Not that it's a button and has a
type="button"
attribute we should also review the events attached, needs just aclick
, no keys filtering and nopreventDefault()
:)
Do you have time to update the patch?
#14
in reply to:
↑ 13
;
follow-up:
↓ 15
@
10 years ago
Replying to obenland:
Replying to afercia:
Not that it's a button and has a
type="button"
attribute we should also review the events attached, needs just aclick
, no keys filtering and nopreventDefault()
:)
Do you have time to update the patch?
type="button"
also exists in the button in menu customizer content_template()
function, so should it get removed there as well, and have those attached events reviewed too?
#15
in reply to:
↑ 14
;
follow-up:
↓ 16
@
10 years ago
Replying to TomHarrigan:
type="button"
also exists in the button in menu customizercontent_template()
function, so should it get removed there as well, and have those attached events reviewed too?
The Menu Customizer should be up to date on that.
#16
in reply to:
↑ 15
@
10 years ago
Replying to obenland:
The Menu Customizer should be up to date on that.
The patch code was directly 'inspired' by the Menu Customizer code:
#17
follow-up:
↓ 19
@
10 years ago
Oh, he meant that the JS events attached to .reorder-toggle
in wp-admin/js/customize-widgets.php
should be reviewed. Switching it to a button with type="button"
allows us to remove the keyboard event checks.
#18
@
10 years ago
Ah gotcha, I misread it as meaning that having button of type button was redundant
#19
in reply to:
↑ 17
@
10 years ago
Replying to obenland:
Oh, he meant that the JS events attached to
.reorder-toggle
inwp-admin/js/customize-widgets.php
should be reviewed. Switching it to a button withtype="button"
allows us to remove the keyboard event checks.
That :) adding type="button"
removes any default action (in any browsers) from buttons. So there's no need to prevent a non-existing default action.
#20
@
10 years ago
Refreshed patch to review events, dynamically update ARIA attributes and deliver wp.a11y.speak
messages. This should pair these two buttons with the Menu Customizer buttons.
Removed moving focus to the first "Move to another area..." control for consistency with the Menu Customizer and also because that control is only visible when there are two or more widget areas.
#21
@
10 years ago
- Keywords has-patch needs-refresh added; needs-patch removed
We're in RC, so we should avoid introducing new strings at this point.
A refreshed patch without that would be pretty close to fixing the issue though.
#22
@
10 years ago
Refreshed. If I'm not wrong, 'Reorder widgets' was the only one new, reverted to just 'Reorder' we should then change it for 4.4. The other 3 ones already exist.
#23
@
10 years ago
Oh well I was wrong, there are also the strings added in the initial patches. What should we do with those ones? At this point maybe we should fix just the styling.
This ticket was mentioned in Slack in #core-customize by afercia. View the logs.
10 years ago
#25
@
10 years ago
Yes, at this point we should just fix the styling, and leave the rest for 4.4 (early).
#26
@
10 years ago
- Keywords commit added; needs-refresh removed
I agree, 33260.2.diff is OK to close this ticket for 4.3.
#28
@
10 years ago
@helen, @ocean90, rather than removing it from widgets, what do you think about limiting menu styles to menus?
This ticket was mentioned in Slack in #core by obenland. View the logs.
10 years ago
#30
follow-up:
↓ 31
@
10 years ago
33260.7.diff means, that we have to add .customize-control-sidebar_widgets
to all three rules if we switch this to a <button>
element.
But for 4.3 this works too. In 4.4 we should switch it to a <button>
element and move it into customize-controls.css
.
#31
in reply to:
↑ 30
;
follow-up:
↓ 33
@
10 years ago
Replying to ocean90:
In 4.4 we should switch it to a
<button>
element and move it intocustomize-controls.css
.
This.
#32
@
10 years ago
@obenland @ocean90 I am up for this.
Actually, the real issue seems to be the .reorder-toggle
padding in customize-widgets(-rtl).css
file which is adding wrong padding.
I removed those paddings by making them 0 and voila it is perfectly aligned with the other span button. Let me add the patch.
P.S. I missed one comment in the discussion last time. But looks like, since we are not opting to make this span element a button we might as well just make that padding's value 0 for 4.3 release.
#34
@
10 years ago
Hi mrahmadawais, thanks for your patch!
TomHarrigan orriginally suggested it too in 33260.2.diff, but it's not widgets that do something wrong here, the menu styles are not properly name-spaced. 33260.7.diff fixes that.
This ticket was mentioned in Slack in #core by obenland. View the logs.
10 years ago
#36
follow-up:
↓ 38
@
10 years ago
33260.7.diff seems good for 4.3, let's open a new ticket for 4.4 if there isn't one already. Needs second committer review but looks good to me.
Fix padding on reorder toggle