@1024pix/pix-ui 54.12.1 → 54.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- <div class="pix-table" ...attributes>
2
- <table class={{this.tableClass}}>
1
+ <div class={{this.tableClass}} ...attributes>
2
+ <table>
3
3
  <caption class="screen-reader-only">{{this.caption}}</caption>
4
4
  <thead class={{this.headerClass}}>
5
5
  <tr>
@@ -24,6 +24,7 @@ export default class PixTable extends Component {
24
24
  }
25
25
 
26
26
  get tableClass() {
27
+ const tableClass = ['pix-table'];
27
28
  warn(
28
29
  'PixTable: @condensed must be a boolean, default undefined',
29
30
  [true, false, undefined].includes(this.args.condensed),
@@ -32,9 +33,10 @@ export default class PixTable extends Component {
32
33
  },
33
34
  );
34
35
  if (this.args.condensed) {
35
- return 'pix-table__condensed';
36
+ tableClass.push('pix-table--condensed');
36
37
  }
37
- return null;
38
+
39
+ return tableClass.join(' ');
38
40
  }
39
41
 
40
42
  get headerClass() {
@@ -11,12 +11,6 @@
11
11
 
12
12
  @extend %pix-body-s;
13
13
 
14
- &__condensed {
15
- th, td {
16
- padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
17
- }
18
- }
19
-
20
14
  &__clickable-row {
21
15
  cursor: pointer;
22
16
 
@@ -82,5 +76,13 @@
82
76
  }
83
77
  }
84
78
  }
79
+
80
+ &--condensed {
81
+ table {
82
+ th, td {
83
+ padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
84
+ }
85
+ }
86
+ }
85
87
  }
86
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "54.12.1",
3
+ "version": "54.12.2",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"