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

CSS changes in .webxr-buttons in the style.css are being ignored #173

Closed
6 tasks done
llllkatjallll opened this issue Aug 1, 2023 · 1 comment
Closed
6 tasks done

Comments

@llllkatjallll
Copy link

Describe the bug 💬

I want to change the position of the webxr-buttons in the style.css document (I was able to do this in previous projects).

But when I change some css-values now (for example bottom-value) , test it on mobile and debug it with chrome - the default values of the webxr-buttons css are shown.

Operating System 👩‍💻

Windows

What browsers are you seeing the problem on? 🏄‍♂️

Chrome

Editor Version 🎲

2021.3

Needle Exporter version

3.10.5-pre

Project Info (Unity only) 📜

## <TITLE>
## Describe the bug
needle-engine .webxr-buttons CSS changes in the style.css are being ignored

## Steps to reproduce
1) Change values (for example bottom-value) for .webxr-buttons class.
2) Test the project on mobile
3) Changes made in css are not visible

## How can we contact you if we have further questions?
- krempel
- discord username: krempel
- link to discord post or github issue

Steps to reproduce 🔢

1) Change values (for example bottom-value) for .webxr-buttons class.
2) Test the project on mobile
3) Changes made in css are not visible

Reproduction ♻

No response

Discord or Discussion link

No response

Validations 🩹

@llllkatjallll llllkatjallll added the untriaged Newly reported issue label Aug 1, 2023
@hybridherbst
Copy link
Contributor

hybridherbst commented Aug 1, 2023

That's expected as the buttons have moved into the shadowRoot of the needle-engine element, where they can't be styled. We'll have to add a <slot> for it so you can override them more easily; as a workaround, you can use the custom XR buttons sample as basis for rolling your own buttons.

@marwie marwie closed this as completed Aug 3, 2023
@marwie marwie removed the untriaged Newly reported issue label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants