add option to render link tag conditionally #4640
tomer-yechiel
started this conversation in
Proposals
Replies: 1 comment
-
If you can use a media query to detect if the user needs RTL/LTR styles, you can use the If there's no way to do that, you can Remix Util's DynamicLinks which receives the data from the loader where you can return if you need RTL or LTR styles. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I didn't see currently an option to load CSS files conditionally, the use case is to load different CSS files if the user local is RTL/LTR.
what do you think about adding to the Links component a new prop filter?
<Links filterBy={(link:LinkDescriptor) => false} />
I can open a PR
thanks!
Beta Was this translation helpful? Give feedback.
All reactions