-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make it possible to visually differentiate editable cells from read only cells #72
Comments
Not: we could try to add |
Would this actually be more of a new state for the cell, rather than a new part? |
Whether it should be part or state is an interesting question. See e.g. w3c/csswg-drafts#4412
One problem with attributes is that native Also, we are unlikely to be able to use |
Right. Didn’t think about how this would play together with I’m still not sure if we are not going to need something like ThemableMixin in the future, even after My assumption is that you can’t target the host element using Alternatively, you need to add a Then again, I also think that if you place a component inside a shadow root, you really do want that to be isolated from outside styling and want to opt-in to any customized theming. If a button should be exposed to global theming (apart from custom properties), place it in the light dom. |
Let's go with an additional part name for now. |
Adding an observer for |
Another way would be to tweak _setBodyCellPart(cell, column , part) {
cell.setAttribute('part', part);
} Then in grid pro we could check if |
Now editable cells look like read only cells. There is no different styling, or different pointer. It has no css part defined so that you could theme it yourself.
The text was updated successfully, but these errors were encountered: