Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Table): invalid sort indicator location when sticky is enabled #510

Merged
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
2 changes: 1 addition & 1 deletion packages/documentation/src/Components/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export const WithRowNumbers: Story<any> = (args) => {

export const Sortable: Story<any> = (args) => {
const [sortState, setSortState] = useState<{
cell: string | number;
cell: string;
direction:
| typeof TableCellSortDirections.ASC
| typeof TableCellSortDirections.DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export const ButtonSort = React.forwardRef<HTMLButtonElement, ButtonSortProps>(
? clsx(
"relative",
"focus-within:static",
"focus-within:after:border-transparent",
"after:absolute",
"after:content-['']",
"after:border-b-2",
"after:z-[-1px]",
"after:bottom-[-4px]",
"after:left-0",
"after:right-0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ describe("ButtonSort modifiers", () => {
if (parent) {
expectToHaveClasses(parent, [
"focus-within:static",
"focus-within:after:border-transparent",
"after:absolute",
"after:content-['']",
"after:border-b-2",
"after:z-[-1px]",
"after:bottom-[-4px]",
"after:left-0",
"after:right-0",
Expand All @@ -217,10 +217,10 @@ describe("ButtonSort modifiers", () => {
if (parent) {
expectToHaveClasses(parent, [
"focus-within:static",
"focus-within:after:border-transparent",
"after:absolute",
"after:content-['']",
"after:border-b-2",
"after:z-[-1px]",
"after:bottom-[-4px]",
"after:left-0",
"after:right-0",
Expand Down
Loading