@momentum-design/components 0.127.4 → 0.127.5

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.
@@ -33,6 +33,7 @@ import type { BannerVariant } from './banner.types';
33
33
  *
34
34
  * @cssproperty --mdc-banner-background-color - Background color of the banner.
35
35
  * @cssproperty --mdc-banner-border-color - Border color of the banner.
36
+ * @cssproperty --mdc-banner-border-width - Border width of the banner.
36
37
  * @cssproperty --mdc-banner-icon-color - Color of the icon in the banner.
37
38
  * @cssproperty --mdc-banner-elevation - Elevation/shadow of the banner.
38
39
  * @cssproperty --mdc-banner-padding - Padding inside the banner.
@@ -46,6 +46,7 @@ import { getIconNameForVariant } from './banner.utils';
46
46
  *
47
47
  * @cssproperty --mdc-banner-background-color - Background color of the banner.
48
48
  * @cssproperty --mdc-banner-border-color - Border color of the banner.
49
+ * @cssproperty --mdc-banner-border-width - Border width of the banner.
49
50
  * @cssproperty --mdc-banner-icon-color - Color of the icon in the banner.
50
51
  * @cssproperty --mdc-banner-elevation - Elevation/shadow of the banner.
51
52
  * @cssproperty --mdc-banner-padding - Padding inside the banner.
@@ -97,11 +98,14 @@ class Banner extends Component {
97
98
  if (!this.label)
98
99
  return nothing;
99
100
  return html `
100
- <mdc-text part="leading-label" type="${TYPE.BODY_LARGE_REGULAR}" tagname="${VALID_TEXT_TAGS.SPAN}"
101
+ <mdc-text part="leading-label" type="${TYPE.BODY_MIDSIZE_MEDIUM}" tagname="${VALID_TEXT_TAGS.SPAN}"
101
102
  >${this.label}</mdc-text
102
103
  >
103
104
  ${this.secondaryLabel
104
- ? html `<mdc-text part="leading-secondary-label" type="${TYPE.BODY_MIDSIZE_REGULAR}" tagname="${VALID_TEXT_TAGS.SPAN}"
105
+ ? html `<mdc-text
106
+ part="leading-secondary-label"
107
+ type="${TYPE.BODY_MIDSIZE_REGULAR}"
108
+ tagname="${VALID_TEXT_TAGS.SPAN}"
105
109
  >${this.secondaryLabel}</mdc-text
106
110
  >`
107
111
  : nothing}
@@ -23,6 +23,6 @@ declare const VARIANT_ICON_NAMES: {
23
23
  */
24
24
  declare const DEFAULTS: {
25
25
  readonly VARIANT: "custom";
26
- readonly PREFIX_ICON_SIZE: 1.5;
26
+ readonly PREFIX_ICON_SIZE: 1.25;
27
27
  };
28
28
  export { TAG_NAME, BANNER_VARIANT, DEFAULTS, VARIANT_ICON_NAMES };
@@ -24,6 +24,6 @@ const VARIANT_ICON_NAMES = {
24
24
  */
25
25
  const DEFAULTS = {
26
26
  VARIANT: BANNER_VARIANT.CUSTOM,
27
- PREFIX_ICON_SIZE: 1.5,
27
+ PREFIX_ICON_SIZE: 1.25,
28
28
  };
29
29
  export { TAG_NAME, BANNER_VARIANT, DEFAULTS, VARIANT_ICON_NAMES };
@@ -3,9 +3,10 @@ const styles = css `
3
3
  :host {
4
4
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
5
5
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
6
+ --mdc-banner-border-width: 1px;
6
7
  --mdc-banner-icon-color: var(--mds-color-theme-text-primary-normal);
7
8
  --mdc-banner-elevation: var(--mds-elevation-3);
8
- --mdc-banner-padding: 0.75rem;
9
+ --mdc-banner-padding: calc(0.75rem - var(--mdc-banner-border-width));
9
10
  --mdc-banner-gap: 0.5rem;
10
11
 
11
12
  display: flex;
@@ -15,7 +16,7 @@ const styles = css `
15
16
  align-self: stretch;
16
17
  width: 100%;
17
18
  background-color: var(--mdc-banner-background-color);
18
- border: 1px solid var(--mdc-banner-border-color);
19
+ border: var(--mdc-banner-border-width) solid var(--mdc-banner-border-color);
19
20
  border-radius: 0.5rem;
20
21
  filter: var(--mdc-banner-elevation);
21
22
  }
@@ -56,7 +57,6 @@ const styles = css `
56
57
  flex: 1 0 0;
57
58
  display: flex;
58
59
  flex-direction: column;
59
- gap: 0.25rem;
60
60
  }
61
61
 
62
62
  :host(:not([secondary-label]))::part(leading) {
@@ -65,7 +65,6 @@ const styles = css `
65
65
 
66
66
  :host::part(leading-icon) {
67
67
  color: var(--mdc-banner-icon-color);
68
- padding: 0.25rem 0;
69
68
  }
70
69
 
71
70
  :host::part(trailing) {