-
Notifications
You must be signed in to change notification settings - Fork 513
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
[Question] Root html element font-size affects library offsets calculated in rem #1755
Comments
@socaseinpoint Can you provide a code pen or link to a repo that demos the issue you're having? |
https://github.com/socaseinpoint/demo_block_native_rem demo the issue |
@socaseinpoint Is this what you are looking for? Let us know which styles there are missing that you need for you application. |
Examples:
|
Hey @socaseinpoint can you apply your font-size to the body element instead of the root html element? This would be the easiest way to resolve on your end. |
Rem units allow you to set sizes relative to the root element. |
I have tried, and it's impossible to get this to work as expected without changing the a rewrite to pixel would be best in this case. |
Is there any progress on this issue? The style is disordered and cannot be used on the mobile end |
Has this issue been resolved? |
@socaseinpoint were you able to fix this? |
我也遇到了此问题,应该怎么解决 |
https://t.me/c/2205886174/29926### [__](
) |
Current Behavior
My web application has an overridden font size on HTML element, this affects the paddings and font size inside the shadow dom created by the library since the calculation of the size of the indents is specified through rem, which always relies on the value on the root element.
The library has the ability to override styles via css variables, so i can fix brocken paddings and font size by using em instead of rem, but there is some values that has no css variables. Can you provide more css variables in this library or suggest any other fix for that problem?
Expected Behavior
No response
Steps To Reproduce
No response
What package is effected by this issue?
@web3-onboard/react
Is this a build or a runtime issue?
Runtime, N/A
Package Version
2.9.0
Node Version
No response
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Anything else?
No response
Sanity Check
The text was updated successfully, but these errors were encountered: