@brightspace-ui/core 3.72.0 → 3.72.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.
@@ -103,7 +103,7 @@ class TestTable extends RtlMixin(DemoPassthroughMixin(TableWrapper, 'd2l-table-w
103
103
  <thead>
104
104
  ${this.multiLine ? html`
105
105
  <tr>
106
- <th scope="col" sticky><d2l-selection-select-all></d2l-selection-select-all></th>
106
+ <td scope="col" sticky><d2l-selection-select-all></d2l-selection-select-all></td>
107
107
  ${this._renderDoubleSortButton('City', 'Country')}
108
108
  <th scope="col" colspan="${columns.length + 1}" sticky>
109
109
  Metrics
@@ -116,7 +116,7 @@ class TestTable extends RtlMixin(DemoPassthroughMixin(TableWrapper, 'd2l-table-w
116
116
  </tr>
117
117
  ` : html`
118
118
  <tr>
119
- <th scope="col" sticky><d2l-selection-select-all></d2l-selection-select-all></th>
119
+ <td scope="col" sticky><d2l-selection-select-all></d2l-selection-select-all></td>
120
120
  ${this._renderDoubleSortButton('City', 'Country')}
121
121
  ${columns.map(columnHeading => this._renderSortButton(columnHeading))}
122
122
  ${this._renderMenuSortButton('Coordinates', ['Latitude', 'Longitude'])}
@@ -87,7 +87,10 @@ export const tableStyles = css`
87
87
  /* header cells */
88
88
  .d2l-table > thead > tr > th,
89
89
  .d2l-table > * > tr.d2l-table-header > th,
90
- .d2l-table > * > tr[header] > th {
90
+ .d2l-table > * > tr[header] > th,
91
+ .d2l-table > thead > tr > td,
92
+ .d2l-table > * > tr.d2l-table-header > td,
93
+ .d2l-table > * > tr[header] > td {
91
94
  background-color: var(--d2l-table-header-background-color);
92
95
  font-size: 0.7rem;
93
96
  line-height: 0.9rem;
@@ -214,6 +217,7 @@ export const tableStyles = css`
214
217
 
215
218
  /* all header cells */
216
219
  d2l-table-wrapper[sticky-headers] .d2l-table > thead > tr > th,
220
+ d2l-table-wrapper[sticky-headers] .d2l-table > thead > tr > td,
217
221
  d2l-table-wrapper[sticky-headers]:not([sticky-headers-scroll-wrapper]) .d2l-table > * > tr.d2l-table-header > *,
218
222
  d2l-table-wrapper[sticky-headers]:not([sticky-headers-scroll-wrapper]) .d2l-table > * > tr[header] > * {
219
223
  position: -webkit-sticky;
@@ -224,6 +228,8 @@ export const tableStyles = css`
224
228
  /* header cells that are also sticky */
225
229
  d2l-table-wrapper[sticky-headers] .d2l-table > thead > tr > th.d2l-table-sticky-cell,
226
230
  d2l-table-wrapper[sticky-headers] .d2l-table > thead > tr > th[sticky],
231
+ d2l-table-wrapper[sticky-headers] .d2l-table > thead > tr > td.d2l-table-sticky-cell,
232
+ d2l-table-wrapper[sticky-headers] .d2l-table > thead > tr > td[sticky],
227
233
  d2l-table-wrapper[sticky-headers]:not([sticky-headers-scroll-wrapper]) .d2l-table > * > tr.d2l-table-header > .d2l-table-sticky-cell,
228
234
  d2l-table-wrapper[sticky-headers]:not([sticky-headers-scroll-wrapper]) .d2l-table > * > tr.d2l-table-header > [sticky],
229
235
  d2l-table-wrapper[sticky-headers]:not([sticky-headers-scroll-wrapper]) .d2l-table > * > tr[header] > .d2l-table-sticky-cell,
@@ -756,10 +762,10 @@ export class TableWrapper extends RtlMixin(PageableMixin(SelectionMixin(LitEleme
756
762
  const stickyRows = Array.from(this._table.querySelectorAll(SELECTORS.headers));
757
763
  stickyRows.forEach(r => {
758
764
  const thTop = hasStickyControls ? `${rowTop}px` : `calc(${rowTop}px + var(--d2l-table-border-radius-sticky-offset, 0px))`;
759
- const ths = Array.from(r.querySelectorAll('th'));
765
+ const ths = Array.from(r.querySelectorAll('th,td'));
760
766
  ths.forEach(th => th.style.top = thTop);
761
767
 
762
- const rowHeight = r.querySelector('th:not([rowspan])')?.offsetHeight || 0;
768
+ const rowHeight = r.querySelector('th:not([rowspan]),td:not([rowspan])')?.offsetHeight || 0;
763
769
  rowTop += rowHeight;
764
770
  });
765
771
  }
package/lang/en.js CHANGED
@@ -32,8 +32,8 @@ export default {
32
32
  "components.filter-dimension-set-date-text-value.textMonths": "Last {num} months",
33
33
  "components.filter-dimension-set-date-time-range-value.label": "{text}, expand to choose dates",
34
34
  "components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} to {endValue}",
35
- "components.filter-dimension-set-date-time-range-value.valueTextRangeStartOnly": "Start Date: {startValue}",
36
- "components.filter-dimension-set-date-time-range-value.valueTextRangeEndOnly": "End Date: {endValue}",
35
+ "components.filter-dimension-set-date-time-range-value.valueTextRangeStartOnly": "After {startValue}",
36
+ "components.filter-dimension-set-date-time-range-value.valueTextRangeEndOnly": "Before {endValue}",
37
37
  "components.filter-dimension-set-date-time-range-value.text": "Custom date range",
38
38
  "components.form-element.defaultError": "{label} is invalid",
39
39
  "components.form-element.defaultFieldLabel": "Field",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.72.0",
3
+ "version": "3.72.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",