User tests: Successful: Unsuccessful:
Pull Request for #32070 (comment) issue 1.
Remove unwanted padding from menu item edit icons.
language/en-GB/langmetadata.xml
and changing <rtl>0</rtl>
to <rtl>1</rtl>
in the <metadata>
section.LTR with frontend editing enabled:
The menu items are not aligned as they would be when frontend editing was switched off, see red lines in the screenshot above and green lines in the one below.
LTR without frontend editing:
The 2 screenshots have been made with the same window size. As you can see by the articles' texts at the bottom, the vertical space needed by the horizontal menu in the header changes when frontend editing is on, so everything below the header moves a bit down.
LTR with frontend editing enabled:
Compared to screenshot 2 in the previous section, the vertical positions of things below the header area haven't changed.
The horizontal alignment of menu item edit icons to menu titles or other content is the same as the horizontal alignment of menu item titles without frontend editing e.g. when logged off.
For RTL, the results are harder to verify due to the other issue with position of the module edit buttons.
The underline of the menu item edit link in the header section has to be fixed with another PR.
I've tried a bit when doing this PR here but did not really find a nice way. It should be removed completely for the edit icon in _header.scss (and possibly also _footer.scss).
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Templates (site) NPM Change |
This can be done without any special LTR or RTL css
Use padding-inline-start and padding-inline-end
@brianteeman I know. But I was not sure regarding browser support. As I just can see we already use padding-inline
at a few places. Will change it here, if that's wrong it has to be changed here and at these other places.
Labels |
Added:
NPM Resource Changed
?
|
@brianteeman Thanks, changed.
@brianteeman Unfortunately it seems that some other logical CSS properties which could be useful to fix the other issue with positioning of module edit buttons for RTL have less browser support: https://caniuse.com/?search=inset-inline-end . Can we use inset-inline
now or should we better not to that (yet)?
Only when they have full browser support for the browsers that we support
If I only knew which browsers we have to support ;-)
Not ie and all current browser versions and version minus 1
As I can see we don't use inset-inline
anywhere yet, in opposite to padding-inline
and margin-inline
, which both have better browser support than inset-inline
.
I have tested this item
Works as described.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-26 08:37:47 |
Closed_By | ⇒ | drmenzelit | |
Labels |
Added:
?
|
Thanks
Thanks!
This can be done without any special LTR or RTL css
Use padding-inline-start and padding-inline-end