-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiInMemoryTable] Use the .euiTableRow-isSelectable
className to indicate state
#7515
Comments
I definitely see what you're seeing, but just to clarify, are you saying this was the case and broke at some point in EUI history? From what I'm seeing in the source code, it looks like this always the way eui/src/components/table/table_row.tsx Lines 21 to 25 in e8407ff
helps shed some light on this - it looks like the We can definitely consider revisiting this during EuiTable's Emotion conversion - we won't need the className for CSS at that point and can re-appropriate it as a state indicator. |
@cee-chen interesting. I had assumed that the class was once applied only to selectable rows because of that code I saw in our FTs. But, it may well be that the author of that code made an incorrect assumption.
This could be nice! But, as I've thought about it more, you could also argue that internal EUI classes aren't really part of your supported contract. I'll leave it up to you |
I'm definitely open to doing it during the Emotion conversion! We use other |
EuiInMemoryTable
assigns the euiTableRow-isSelectable
class to non-selectable rows.euiTableRow-isSelectable
className to indicate state
Addressed by #7632. Will be merged into main once the feature branch with all EuiTable Emotion conversions is opened, so should reach Kibana main in another 2-3 weeks. |
Describe the bug
The
EuiInMemoryTable
assigns theeuiTableRow-isSelectable
class to non-selectable rows.Impact and severity
The impact is largely felt when writing automated tests. For example, this routine in Kibana's functional test code is no longer accurate since isSelectable is being applied to all rows. I don't think this is high impact since the test can always examine the checkboxes themselves.
Environment and versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect
isSelectable
CSS class to only be applied to rows for whichselection.selectable
returned true 🤷♂️The text was updated successfully, but these errors were encountered: