Problem/Motivation
Solving issue #2293589 breaks table row inline buttons, when rows are not high enough to show the button in the middle. Commit: 63a6e44babea30a06f761f06d0d1cf4a4882d49a from Today (3.10.2014)
The main problem is, that there are correct css styles for .dropbutton-multiple, but not .dropbutton-single. Since fixing #2293589, .dropbutton-single inside a table td, will gets displayed wrong (see img).
Proposed resolution
Applay positioning styles for .dropbutton-single to .dropbutton-wrapper, so .dropbutton-single and .dropbutton-multiple will use this formatting styles.
Remaining tasks
(done) create an issue description
(done) find a solution
(done) create a patch)
(done) make screenshots
review and test
User interface changes
Without patch:
After applying patch:
Comment | File | Size | Author |
---|---|---|---|
#14 | Screenshot - 10_17_2014 , 1_27_43 PM.png | 14.95 KB | bwinett |
#14 | Screenshot - 10_17_2014 , 1_27_06 PM.png | 14.86 KB | bwinett |
#13 | Screenshot - 10_17_2014 , 1_23_14 PM.png | 28.3 KB | bwinett |
#13 | Screenshot - 10_17_2014 , 1_21_55 PM.png | 11.1 KB | bwinett |
#13 | Screenshot - 10_17_2014 , 1_18_26 PM.png | 23.96 KB | bwinett |
Comments
Comment #1
killerpoke CreditAttribution: killerpoke commentedI just created a patch to fix this problem and updated the issue description.
Comment #2
killerpoke CreditAttribution: killerpoke commentedComment #3
johnennew CreditAttribution: johnennew commentedThis is a good catch!
I have confirmed the issue.
Steps to reproduce
1. Enable translation modules
2. Goto admin/people/roles/manage/administrator/translate
I have confirmed attached patch corrects the issue
I have confirmed attached patch does not regress #2293589
Just a note - the patch name does not adhere to naming convention - do check docs here: https://www.drupal.org/node/707484
Comment #4
killerpoke CreditAttribution: killerpoke commentedComment #5
killerpoke CreditAttribution: killerpoke commentedFinally figured out, how the patch should be named.
Comment #9
cjoy CreditAttribution: cjoy commentedLooking at that section of the css, I see:
You change the first selector to match the wrapper instead of its child, but the RTL override below still applies to the child (thus no longer being an override).
I would suggest is an alternative fix that also works for RTL. Tested on FF, Chrome, Safari (all Mac) and mobile Safari iOS7.
Comment #10
cjoy CreditAttribution: cjoy commentedComment #11
droplet CreditAttribution: droplet commentedI added a bit more, @see #2358507: single dropbutton align problem
Comment #12
bwinett CreditAttribution: bwinett commentedI noticed that the issue also shows up on admin/config/regional/language/detection
and on admin/config/people/accounts/translate
and here: admin/config/regional/date-time
I will next make sure they look good after the patch. And I will check pages without the patch that look good, and make sure they still look good after the patch.
Comment #13
bwinett CreditAttribution: bwinett commentedWith the patch, admin/config/regional/language/detection looks good:
So does admin/config/people/accounts/translate:
As does admin/config/regional/date-time:
Comment #14
bwinett CreditAttribution: bwinett commentedI checked admin/config/people/accounts/fields before and after the patch, and it good before and after. Before:
And after:
I looked at the code, and it looks like the change is isolated and doesn't introduce any coding standards issues. So setting the status to rtbc.
Comment #15
bwinett CreditAttribution: bwinett commentedDocumenting that #2293589: Texts are not vertically aligned in listing views is this issue's parent.
Comment #16
alexpottI'm super concerned about all the outstanding issues with dropbuttons. I feel we're playing whack-a-mole.
Comment #17
catchCould really use automated front end testing for this, but appreciate the manual testing that's gone into this issue and the change looks fine.
Committed/pushed to 8.0.x, thanks!
Comment #19
YesCT CreditAttribution: YesCT commentedyeah, I wonder if we can look into #2229187: SiteEffect: Automated frontend regression testing as an external service (a simplytest.me kind of thing?)