-
Notifications
You must be signed in to change notification settings - Fork 106
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): replaced column-type of "row-header" with boolean row-header #2355
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done, thanks @WinkeeFace! Just a few notes:
- Those tests are failing because you didn't include
rowHeader
in theindex.marko
destructure here. - Since Marko 5 / eBayUI normalizes kebab-case to camelCase so both are accepted, that needs to be accommodated for in TypeScript. To do this, you can either add duplicate
"row-header"?: boolean;
and"column-type"?: ...
types in the interface (probably not recommended), or you can switch everything to kebab-case and useWithNormalizedProps<>
like we do forInput
(preferred). =true
is implied in Marko attributes (same as HTML), so there are a few examples that can be simplified (I showed one example in a code comment)
Thank you for the feedback! I'll make those corrections. |
🦋 Changeset detectedLatest commit: 59159b6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Also please add a changeset! Thanks! |
…ay/ebayui-core into 2313-ebay-table-various-fixes
@WinkeeFace I appreciate the effort of going through and adding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the .DS_Store
files
You can add them to gitignore (which they should be there already)
…ay/ebayui-core into 2313-ebay-table-various-fixes
author jwink <Joshf.wink@gmail.com> 1735049444 -0600 committer jwink <Joshf.wink@gmail.com> 1737052644 -0600 gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSoShVR892P7bJRQArkPu1hwhBhDwUCZ4lR5AAKCRDkPu1hwhBh D0izAQDhhUyjnmvyZHTgn+gtb1drZh748Tmum8YTx0gtdWQ9fQD/Wxma9Y+QI7iE DjGrDfkF1dBV31gbsJ2FdJVwlUPdbA8= =K8Tx -----END PGP SIGNATURE----- parent df32cbb author jwink <Joshf.wink@gmail.com> 1735049444 -0600 committer jwink <Joshf.wink@gmail.com> 1737052605 -0600 gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSoShVR892P7bJRQArkPu1hwhBhDwUCZ4lRvQAKCRDkPu1hwhBh D2dZAQDNsHo6luNAbuTqpJv8XWYlDvo5XTt3V039M31yvSisZgD/UmYJRTPcXvAh 9Juaec5xArHCQ2TKIduoEOglHOVnTQM= =U5up -----END PGP SIGNATURE----- parent df32cbb author jwink <Joshf.wink@gmail.com> 1735049444 -0600 committer jwink <Joshf.wink@gmail.com> 1737052478 -0600 gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSoShVR892P7bJRQArkPu1hwhBhDwUCZ4lRPgAKCRDkPu1hwhBh D1GbAQCba0MBp0W324agRMrWxOdsC5eddIIPTF4X+DTLxaFrPAEA82VWkg8uGsvf G7zhgr/F27UtC4NyWmVyyB8ncXnoTQs= =5TPI -----END PGP SIGNATURE----- parent df32cbb author jwink <Joshf.wink@gmail.com> 1735049444 -0600 committer jwink <Joshf.wink@gmail.com> 1737052214 -0600 gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSoShVR892P7bJRQArkPu1hwhBhDwUCZ4lQNgAKCRDkPu1hwhBh D1ZUAP0WPGOj9dOX7yYUjlBm9pwMrfrRwZY/bWgm1qxlSwMhPgD/c9VXZ3LJzrEz RiRCESkQvdmXjFEcDvQH2cI95afvHQo= =W7De -----END PGP SIGNATURE----- feat(table): replaced column-type of row-header with boolean row-header feat(table): update row-header attribute to boolean format in examples feat(table): update row-header attribute to boolean format in examples feat(table): update TableHeader interface and examples to use WithNormalizedProps fix(table): update examples to use 'as const' for column-type attributes fix(table): update examples to use 'as const' for numeric column-type fix(table): update examples to use 'as const' for numeric column-type headers fix(table): remove 'as const' from numeric column-type headers in examples feat(table): replaced column-type of row-header with boolean row-header feat(table): update TableHeader interface and examples to use WithNormalizedProps fix(table): update examples to use 'as const' for column-type attributes fix(table): update examples to use 'as const' for numeric column-type fix(table): update examples to use 'as const' for numeric column-type headers fix(table): remove 'as const' from numeric column-type headers in examples fix(ebay-table): remove aria-pressed attribute for improved accessibility chore: remove .DS_Store files and update .gitignore feat(table): update TableHeader interface and examples to use WithNormalizedProps fix(table): update examples to use 'as const' for column-type attributes fix(table): update examples to use 'as const' for numeric column-type fix(table): update examples to use 'as const' for numeric column-type headers fix(table): remove 'as const' from numeric column-type headers in examples feat(table): update TableHeader interface and examples to use WithNormalizedProps fix(table): update examples to use 'as const' for column-type attributes fix(table): update examples to use 'as const' for numeric column-type fix(table): update examples to use 'as const' for numeric column-type headers fix(table): remove 'as const' from numeric column-type headers in examples feat(table): replaced column-type of row-header with boolean row-header feat(table): update TableHeader interface and examples to use WithNormalizedProps fix(table): update examples to use 'as const' for column-type attributes fix(table): update examples to use 'as const' for numeric column-type fix(table): update examples to use 'as const' for numeric column-type headers fix(table): remove 'as const' from numeric column-type headers in examples fix(ebay-table): remove aria-pressed attribute for improved accessibility chore: remove .DS_Store files and update .gitignore feat(table): replaced column-type of row-header with boolean row-header feat(table): update TableHeader interface and examples to use WithNormalizedProps fix(table): update examples to use 'as const' for column-type attributes fix(table): update examples to use 'as const' for numeric column-type fix(table): update examples to use 'as const' for numeric column-type headers fix(table): remove 'as const' from numeric column-type headers in examples chore: remove .DS_Store files and update .gitignore
…ay/ebayui-core into 2313-ebay-table-various-fixes
Description
Replaced
column-type
ofrow-header
with a booleanrow-header
in theebay-table
component. Updated the relevant Marko and JSON files to reflect this change.Context
This change was made to simplify the handling of row headers and improve ARIA accessibility. The boolean
row-header
is more intuitive and aligns better with accessibility standards.References
Screenshots
N/A