Material-ui: table: row hover style is overriding selected style

Created on 15 Nov 2015  路  4Comments  路  Source: mui-org/material-ui

When I click a row, I expect it to be styled as active and hovering shouldn't override that style

mui

bug 馃悰

All 4 comments

Hey! Any news on this one?

@luisrudge : were you able to get this resolved?

From what I could understand from the documentation, for the hover thing to work you have to enable showRowHover. If you want to avoid this but have it styled as active you could disable this prop and on mouseEnter apply the active style to your tableRow.

This does not seem to be an issue but a use-case specific to you so i am closing this. If you feel that you need further help on this, do let us know in the comments below we will try and help you out.

Yep, not an issue anymore. Thanks!

Is the current behavior really the intended behavior? Having the hover color override the selected color is wrong IMO since the user doesn't get any feedback that they selected something until they move the mouse. Yes, I know I can work around it but that defeats the purpose of having the showRowHover option. Any chance this can be changed?

BTW, the current table showRowHover behavior contradicts how the Material UI website's nav menu works (i.e. the selected style overrides the hover style).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pola88 picture pola88  路  3Comments

finaiized picture finaiized  路  3Comments

revskill10 picture revskill10  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

reflog picture reflog  路  3Comments