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

feat(component): add hidden headers props to Table and StatefulTable #297

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

deini
Copy link
Member

@deini deini commented Dec 10, 2019

Adds a boolean headerless to <Table /> and <StatefulTable />.

Headers will be rendered but visually hidden for accessibility purposes.

image

@deini deini requested a review from a team December 10, 2019 18:16
name: 'hiddenHeaders',
types: 'boolean',
defaultValue: 'false',
description: 'Visually hides the headers.',
Copy link
Contributor

Choose a reason for hiding this comment

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

🤷‍♀

Suggested change
description: 'Visually hides the headers.',
description: 'Hides the current tables\'s headers. Headers are only visually hidden to keep with accessibility best practices.',

name: 'hiddenHeaders',
types: 'boolean',
defaultValue: 'false',
description: 'Visually hides the headers.',
Copy link
Contributor

Choose a reason for hiding this comment

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

🤷‍♀

Suggested change
description: 'Visually hides the headers.',
description: 'Hides the current tables\'s headers. Headers are only visually hidden to keep with accessibility best practices.',

@@ -60,6 +60,12 @@ const tableProps: Prop[] = [
types: 'boolean',
description: 'Makes the table header and actions fixed.',
},
{
name: 'hiddenHeaders',
Copy link
Contributor

Choose a reason for hiding this comment

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

What about headerless?

@deini deini force-pushed the feat/table-hidden-headers branch from 0bd0c5e to 6b164ec Compare December 11, 2019 13:30
@deini deini force-pushed the feat/table-hidden-headers branch from 6b164ec to 4a45c96 Compare December 11, 2019 15:31
@deini deini requested a review from chanceaclark December 11, 2019 15:36
@deini deini merged commit d80641a into bigcommerce:master Dec 11, 2019
@deini deini deleted the feat/table-hidden-headers branch December 11, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants