Skip to content

Commit

Permalink
fix: table icon design alignment (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ico authored Jun 13, 2023
1 parent 6201c9b commit a2f7ac6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const Template = (args, { argTypes }) => ({
return 'ascending';
};
const ths = document.getElementsByClassName(className);
const th = ths[ths.length - 1];
const th = Array.from(ths).filter((x) => x.getAttribute('tabindex') === '0')[0];
const currentSort = th.getAttribute('aria-sort');
const nextSort = getNextSort(currentSort);
const tableHeaders = Array.from(document.getElementsByTagName('TH'));
Expand Down

0 comments on commit a2f7ac6

Please sign in to comment.