- Issue created by @quietone
- Merge request !9393Use CSS Logical Properties in files without [dir=] β (Open) created by quietone
- Status changed to Needs work
4 months ago 7:49pm 2 September 2024 - π«π·France nod_ Lille
I think we need to exclude files that have
:dir(rtl)
as well, that gets translated by postcss into[dir=rtl]
, Seems way easier to review than the other MR, thanks! - Status changed to Needs review
4 months ago 8:11pm 2 September 2024 - π³πΏNew Zealand quietone
Came here to at least change the performance numbers but am pleased to see it has already happened.
- Status changed to Needs work
4 months ago 10:07am 4 September 2024 - πͺπΈSpain ckrina Barcelona
I'm all in with using logical properties everywhere. It makes things way easier to do style with modern CSS.
I haven't looked thought all the code, but I've spotted a a small thing that desn't make a lot of sense:
Being removed: padding: 0 var(--off-canvas-padding) var(--off-canvas-padding);
Being added:
padding-block: 0 var(--off-canvas-padding); padding-inline: var(--off-canvas-padding);
I'd still prioritize the shorten version of a property on top of the logical one separated because the shorten includes the logical properties too. So I wonder if it's a matter of improving the script?
- Status changed to Needs review
4 months ago 10:38am 4 September 2024 - π«π·France nod_ Lille
In this case it makes sense to split because block is top/bottom and that can change when you make things vertical (top/bottom can become : left/right or right/left depending)
- πΊπΈUnited States smustgrave
Seems like a large change would it be safer to breakup some?
- π«π·France nod_ Lille
It's already the broken up patch, all the replacements are automated and without the [dir] issue, the replacements are safe should be good to go. I'd check gin maybe to see what's going on but I'm sure this patch is already solving a couple of RTL spacing issues we have.
The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.