@brightspace-ui/core 2.47.3 → 2.47.4

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.
@@ -4,26 +4,26 @@ import { classMap } from 'lit/directives/class-map.js';
4
4
  import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
5
5
 
6
6
  export const descriptionListStyles = [
7
- _generateLabelStyles('dt'),
8
- _generateBodyCompactStyles('dd'),
7
+ _generateLabelStyles('d2l-dl-wrapper > dl > dt'),
8
+ _generateBodyCompactStyles('d2l-dl-wrapper > dl > dd'),
9
9
  css`
10
- :host {
10
+ d2l-dl-wrapper {
11
11
  --d2l-dl-wrapper-dt-min-width: min-content;
12
12
  --d2l-dl-wrapper-dt-max-width: 10rem;
13
13
  --d2l-dl-wrapper-dd-min-width: 50%;
14
14
  }
15
- dl {
15
+ d2l-dl-wrapper > dl {
16
16
  align-items: baseline;
17
17
  display: var(--d2l-dl-wrapper-dl-display, grid);
18
18
  gap: 0.3rem 1.5rem;
19
19
  grid-auto-flow: row;
20
20
  grid-template-columns: minmax(var(--d2l-dl-wrapper-dt-min-width), auto) minmax(var(--d2l-dl-wrapper-dd-min-width), 1fr);
21
21
  }
22
- dt {
22
+ d2l-dl-wrapper > dl > dt {
23
23
  margin: var(--d2l-dl-wrapper-dt-margin, 0);
24
24
  max-width: var(--d2l-dl-wrapper-dt-max-width);
25
25
  }
26
- dd {
26
+ d2l-dl-wrapper > dl > dd {
27
27
  margin: var(--d2l-dl-wrapper-dd-margin, 0);
28
28
  }
29
29
  `,
@@ -2,7 +2,7 @@ import '../colors/colors.js';
2
2
  import { css, unsafeCSS } from 'lit';
3
3
 
4
4
  export const _isValidCssSelector = (selector) => {
5
- const re = /[#.]?([a-zA-Z0-9-_]+)(\[[a-zA-Z0-9-_]+\])?([a-zA-Z0-9-_]+)?/g;
5
+ const re = /([a-zA-Z0-9-_ >.#]+)(\[[a-zA-Z0-9-_]+\])?([a-zA-Z0-9-_ >.#]+)?/g;
6
6
  const match = selector.match(re);
7
7
 
8
8
  return !!match && match.length === 1 && match[0].length === selector.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.47.3",
3
+ "version": "2.47.4",
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",