Skip to content

Commit 1d1b672

Browse files
fix(table line): make row header position to inherit to fix nvda speech viewer
1 parent 3bc2382 commit 1d1b672

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/shared/components/Table/Body/Line/Line.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Line = ({ className, columns = [], classModifier = '', children }: TLine)
1212
<TableTk.Tr classModifier={classModifier} className={className}>
1313
<>
1414
{columns.map(({ keyCol, isHeader = false, ...restTd }) =>
15-
isHeader ? <Header key={keyCol} scope="row" {...restTd} /> : <Td key={keyCol} {...restTd} />,
15+
isHeader ? <Header key={keyCol} scope="row" {...restTd} classModifier="row" /> : <Td key={keyCol} {...restTd} />,
1616
)}
1717
{children}
1818
</>

src/shared/scss/custom.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,19 @@
102102
}
103103

104104
/* FIX/CUSTOM : TABLE ***********************************************************/
105-
.af-table__th--sortable {
106-
padding: 1rem;
107-
cursor: pointer;
108-
&:hover {
109-
background-color: $color-table-sorting;
105+
.af-table__th {
106+
&--row {
107+
position: inherit;
110108
}
111-
.af-table__th-label {
109+
&--sortable {
112110
padding: 1rem;
111+
cursor: pointer;
112+
&:hover {
113+
background-color: $color-table-sorting;
114+
}
115+
.af-table__th-label {
116+
padding: 1rem;
117+
}
113118
}
114119
}
115120

0 commit comments

Comments
 (0)