Skip to content

Commit

Permalink
Fix WCAG error: Empty table header in case of JSX element (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidigorishti committed May 24, 2022
1 parent f1dba73 commit ce0979d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Precise UI Changelog

## 2.1.13

- Fix WCAG error: Empty table header in case of JSX element

## 2.1.12

- Fix the issue `The component Styled(styled.span) has been created dynamically`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "precise-ui",
"version": "2.1.12",
"version": "2.1.13",
"description": "Precise UI React component library powered by Styled Components.",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/TableBasic.part.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class TableBasic<T> extends React.Component<TableProps<T> & RefProps, Tab
const width = typeof column === 'string' ? undefined : column.width;
const sortable = this.isSortable(key, columns);
const direction = sortable && sortBy && (sortBy.columnKey !== key ? undefined : sortBy.order);
const headTag = `${name}`.trim() ? 'th' : 'td';
const headTag = typeof name === 'string' && name.trim() ? 'th' : 'td';

return (
<StyledTableHeader
Expand Down

0 comments on commit ce0979d

Please sign in to comment.