Skip to content

Commit

Permalink
Resolves issue where some CSS classes were malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
MelSumner committed Jan 31, 2023
1 parent ac3f6d5 commit 39b6452
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-snakes-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hashicorp/design-system-components": patch
---

Fixes malformed CSS classes in table component
2 changes: 1 addition & 1 deletion packages/components/addon/components/hds/table/td.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class HdsTableTdComponent extends Component {

// add a class based on the @align argument
if (this.align) {
classes.push(`.hds-table__td--text-${this.align}`);
classes.push(`hds-table__td--text-${this.align}`);
}

return classes.join(' ');
Expand Down
2 changes: 1 addition & 1 deletion packages/components/addon/components/hds/table/th-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class HdsTableThSortComponent extends Component {

// add a class based on the @align argument
if (this.align) {
classes.push(`.hds-table__th-sort--text-${this.align}`);
classes.push(`hds-table__th-sort--text-${this.align}`);
}

return classes.join(' ');
Expand Down
2 changes: 1 addition & 1 deletion packages/components/addon/components/hds/table/th.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class HdsTableThComponent extends Component {

// add a class based on the @align argument
if (this.align) {
classes.push(`.hds-table__th--text-${this.align}`);
classes.push(`hds-table__th--text-${this.align}`);
}

return classes.join(' ');
Expand Down

0 comments on commit 39b6452

Please sign in to comment.