Skip to content

IBX-11487: RTL#1866

Open
OstafinL wants to merge 14 commits into5.0from
IBX-11487-RTL
Open

IBX-11487: RTL#1866
OstafinL wants to merge 14 commits into5.0from
IBX-11487-RTL

Conversation

@OstafinL
Copy link
Copy Markdown
Contributor

@OstafinL OstafinL commented Mar 30, 2026

🎫 Issue IBX-11487

Description:

The encore_entry_link_tags Twig helper is decorated with an RtlEntrypointLookup wrapper that intercepts CSS file resolution at runtime. When RTL mode is active, the lookup applies the following resolution strategy for each entry:

RTL replacement — before loading CSS for a given entry (e.g. ibexa-admin-ui-layout-css), it checks whether a dedicated RTL entry exists under the name -rtl (e.g. ibexa-admin-ui-layout-css-rtl). If found, the RTL entry replaces the original one entirely.

Override merging — additionally, it checks for an override entry named -override-rtl-css (e.g. ibexa-admin-ui-layout-css-override-rtl-css). If this entry exists, its CSS files are merged on top of the resolved entry (either the original or its -rtl replacement). This allows projects to register custom RTL corrections without replacing the full base stylesheet.

Both lookups are non-throwing — if the entry does not exist in entrypoints.json, it is silently skipped. This gives bundle authors a predictable, opt-in RTL extension points for each CSS entry point.

For QA:

Documentation:

@OstafinL OstafinL force-pushed the IBX-11487-RTL branch 2 times, most recently from 91661c5 to 71cb76a Compare March 31, 2026 11:21
@OstafinL OstafinL force-pushed the IBX-11487-RTL branch 11 times, most recently from 9230e03 to 5c621ee Compare April 3, 2026 12:02
@OstafinL OstafinL force-pushed the IBX-11487-RTL branch 4 times, most recently from 1836d5b to 9a78cd9 Compare April 13, 2026 14:40
@barw4 barw4 self-assigned this Apr 16, 2026
Comment thread src/bundle/Asset/RtlEntrypointLookup.php Outdated
Comment thread src/bundle/Templating/Twig/RtlExtension.php Outdated
@barw4 barw4 requested a review from konradoboza April 20, 2026 10:29
Comment thread src/bundle/Resources/config/default_parameters.yaml
Copy link
Copy Markdown
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as CI agrees.

@ibexa-yuna ibexa-yuna deleted the branch 5.0 April 29, 2026 08:11
@ibexa-yuna ibexa-yuna closed this Apr 29, 2026
@mnocon mnocon reopened this Apr 29, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@mnocon mnocon changed the base branch from main to 5.0 April 29, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature request Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.