-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add support for CSS ::part() #10
Comments
Thanks! I saw shadow parts but somehow missed that the browser support was actually pretty good. This might be a nicer API than CSS variables; definitely worth looking into! |
Ah, it's not supported by iOS <=13.3 though... Maybe this would be a good feature for v2. :) |
Note that it doesn't have to be the one |
It's a bit tricky to decide which parts to expose. In terms of my own usage, the only "part" that I need access to is the emoji characters themselves (both custom and native), because I convert them to grayscale if the user has enabled grayscale mode (of course, I could just apply grayscale to the whole element, but this has performance impacts, especially for scrolling elements): So I can see the case for adding |
For me personally, It would be nice if it was possible to make the categories section scrollable horizontally. This is the style I'm using
I increased the the emoji size and now I can't see a part of the flag emoji. Alternatively, it would be nice to have a different variable to change the size of the emojis in the categories section. |
Hmmmm, I can see two potential solutions:
I'm a bit more in favor of the second one since I think it's a bit unintuitive for users to need to scroll that section. |
Your current custom styling section can probably be replaced with CSS ::part(), which has great browser support now.
The text was updated successfully, but these errors were encountered: