Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { CellActionsAlwaysVisible, CellActionsDefault, CellActionsInHeaderCell }

export default {
title: 'Table layout table - cell actions',

decorators: [],
parameters: {
storyWright: { steps: new Steps().hover('.row-1').snapshot('hover row').end() },
Expand All @@ -18,6 +17,10 @@ export default {
export const Default = () => <CellActionsDefault noNativeElements={false} />;
Default.storyName = 'default';

export const Neutral = () => <CellActionsDefault selectedRowAppearance="neutral" noNativeElements={false} />;

export const Brand = () => <CellActionsDefault selectedRowAppearance="brand" noNativeElements={false} />;

export const DefaultRTL = getStoryVariant(Default, RTL);

export const DefaultHighContrast = getStoryVariant(Default, HIGH_CONTRAST);
Expand Down
4 changes: 2 additions & 2 deletions apps/vr-tests-react-components/src/stories/Table/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ interface SharedVrTestArgs {
selectedRowAppearance?: TableRowProps['appearance'];
}

export const CellActionsDefault: React.FC<SharedVrTestArgs> = ({ noNativeElements }) => (
export const CellActionsDefault: React.FC<SharedVrTestArgs> = ({ noNativeElements, selectedRowAppearance }) => (
<Table noNativeElements={noNativeElements}>
<TableHeader>
<TableRow>
Expand All @@ -139,7 +139,7 @@ export const CellActionsDefault: React.FC<SharedVrTestArgs> = ({ noNativeElement
</TableHeader>
<TableBody>
{items.map((item, i) => (
<TableRow key={item.file.label} className={`row-${i}`}>
<TableRow key={item.file.label} className={`row-${i}`} appearance={selectedRowAppearance}>
<TableCell>
<TableCellLayout media={item.file.icon}>
{item.file.label}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: use distinct hover background color",
"packageName": "@fluentui/react-table",
"email": "vgenaev@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ const useStyles = makeStyles({
},
backgroundColor: tokens.colorSubtleBackgroundSelected,
color: tokens.colorNeutralForeground1Hover,
':hover': {
backgroundColor: tokens.colorSubtleBackgroundSelected,
},

':active': {
backgroundColor: tokens.colorSubtleBackgroundSelected,
},
Expand Down