-
Notifications
You must be signed in to change notification settings - Fork 44
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
Table: Resolves issue where some CSS classes were malformed #1157
Table: Resolves issue where some CSS classes were malformed #1157
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.
Is it possible to have a test to check for these classes to prevent future regression?
I'm thinking about a linting rule that could be applied universally, but I don't have a well-formed solution just yet. |
I'm thinking in td-test.js, for example, we can have something like this: test('it should render with the appropriate `@align` CSS class', async function (assert) {
await render(hbs`<Hds::Table::Td id="data-test-table-td" @align="right"/>`);
assert.dom('#data-test-table-td').hasClass('hds-table__td--text-right');
}); This way we make sure that the appropriate class applies as intended and prevents one from accidentally mangling the applied class name in the future. |
ahh yes, I suppose that would address this specific issue, but I guess I was thinking more broadly. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Shouldn't the showcase catch this as well? |
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.
💯
@Dhaulagiri it was reflected in the showcase – I approved the VRT which showed the difference in alignment |
@alex-ju thanks for that context! More an issue that we didn't notice when the initial showcase was created 👌 |
yes, that's true – wanted to flag that we do have an example with alignment to the right; it probably happened during some refactoring |
📌 Summary
If merged, this PR resolves HDS-1491, fixing an issue where some CSS classes on the table component were malformed.
👀 Reviewer's checklist:
💬 Please consider using conventional comments when reviewing this PR.