about Table web component row hover issue #2748
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @LucyGit, you are referring to the Or do you have a use case where you want to have the hover effect for the rows without the possibility to click on a column? In your css: .tableRowWithHover::part(row):hover {
background-color: var(--sapList_Hover_Background);
} in your component: <Table>
<TableRow className="tableRowWithHover">
{/* your cells */}
</TableRow>
</Table> |
Beta Was this translation helpful? Give feedback.
Hey @LucyGit,
you are referring to the
<Table />
component, right?The easiest way of adding on hover effect for the rows is setting the
mode
prop toSingleSelect
orMultiSelect
:https://sap.github.io/ui5-webcomponents-react/iframe.html?args=mode:SingleSelect&id=data-display-table--default-story&viewMode=story
Or do you have a use case where you want to have the hover effect for the rows without the possibility to click on a column?
In this case, you would need to make use of the CSS Parts of the Row:
In your css:
in your component: