Skip to content

Commit

Permalink
release v1.8.1 - fixed sort button accessibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Feb 22, 2023
1 parent f8f2012 commit 03fc49c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { EthicalAd } from '../mdx/EthicalAd';
export const MiniNav = () => {
const { pathname } = useRouter();
const isXLDesktop = useMediaQuery('(min-width: 1800px)');

const [headings, setHeadings] = useState<NodeListOf<HTMLElement>>();

useEffect(() => {
Expand Down
4 changes: 4 additions & 0 deletions apps/material-react-table-docs/pages/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import Head from 'next/head';

### Version 1

#### v1.8.1 (2023-02-22)

- Fixed sorting button accessibility issue

#### v1.8.0 (2023-02-16)

- Allow `enableEditing` prop and column options to be enabled conditionally per row `(row) => boolean`
Expand Down
2 changes: 1 addition & 1 deletion packages/material-react-table/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.8.0",
"version": "1.8.1",
"license": "MIT",
"name": "material-react-table",
"description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export const MRT_TableHeadCell = ({ header, table }: Props) => {
header={header}
table={table}
tableCellProps={tableCellProps}
onClick={column.getToggleSortingHandler()}
/>
)}
{column.getCanFilter() && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ interface Props {
header: MRT_Header;
table: MRT_TableInstance;
tableCellProps?: TableCellProps;
onClick?: React.MouseEventHandler<HTMLSpanElement> | undefined;
}

export const MRT_TableHeadCellSortLabel = ({
header,
table,
tableCellProps,
onClick,
}: Props) => {
const {
options: {
Expand Down Expand Up @@ -53,7 +51,7 @@ export const MRT_TableHeadCellSortLabel = ({
IconComponent={ArrowDownwardIcon}
onClick={(e) => {
e.stopPropagation();
onClick?.(e);
header.column.getToggleSortingHandler()?.(e);
}}
/>
</Tooltip>
Expand Down

2 comments on commit 03fc49c

@vercel
Copy link

@vercel vercel bot commented on 03fc49c Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 03fc49c Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.