Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ObjectPageTitle]: pseudo has() limited browser support - breaks UI in Android devices #6979

Open
1 task done
amdev138 opened this issue Feb 21, 2025 · 0 comments
Open
1 task done

Comments

@amdev138
Copy link

Describe the bug

Hi team,

There are a couple lines of code in ObjectPageTitle/index.tsx#L172 that execute querySelector using the pseudo has() css selector. This selector is not widely supported. In Android devices you will get a runtime exception such as,

Image

and this exception will cause the entire page to not render.

Please use an alternative selector that is commonly supported across all devices/browsers.

:has(> :nth-last-child(n + 2)) > [ui5-toolbar]:last-child

https://caniuse.com/css-has

Thanks,
Allen

Isolated Example

No response

Reproduction steps

Expected Behaviour

No response

Screenshots or Videos

No response

UI5 Web Components for React Version

main

UI5 Web Components Version

main

Browser

Chrome, Edge, Firefox, Safari

Operating System

No response

Additional Context

No response

Relevant log output

Organization

SF

Declaration

  • I’m not disclosing any internal or sensitive information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant