@proximus/lavender-light 2.0.0-alpha.13 → 2.0.0-alpha.3
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.
|
@@ -6247,7 +6247,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6247
6247
|
return `
|
|
6248
6248
|
<div class="cell-radio">
|
|
6249
6249
|
<px-cell hoverable>
|
|
6250
|
-
<px-radio slot="prefix" aria-hidden="true" tabindex="-1"></px-radio>
|
|
6250
|
+
<px-radio-base slot="prefix" aria-hidden="true" tabindex="-1"></px-radio-base>
|
|
6251
6251
|
<slot name="visual" slot="visual"></slot>
|
|
6252
6252
|
<slot name="label" slot="label"></slot>
|
|
6253
6253
|
<slot name="description" slot="description"></slot>
|
|
@@ -6256,18 +6256,17 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6256
6256
|
`;
|
|
6257
6257
|
}
|
|
6258
6258
|
constructor() {
|
|
6259
|
-
var _a;
|
|
6259
|
+
var _a, _b;
|
|
6260
6260
|
super(commonStyleSheet);
|
|
6261
6261
|
this.shadowRoot.innerHTML = this.template();
|
|
6262
6262
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
6263
|
+
this.tabIndex = ((_b = this.parentElement) == null ? void 0 : _b.firstElementChild) === this ? 0 : -1;
|
|
6263
6264
|
if (this.internals) {
|
|
6264
6265
|
this.internals.role = "radio";
|
|
6265
6266
|
this.internals.ariaChecked = `${this.checked}`;
|
|
6266
6267
|
}
|
|
6267
6268
|
}
|
|
6268
6269
|
connectedCallback() {
|
|
6269
|
-
var _a;
|
|
6270
|
-
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
|
|
6271
6270
|
if (this.$slotVisual) {
|
|
6272
6271
|
const slotVisualImg = this.querySelector('px-img[slot="visual"]');
|
|
6273
6272
|
if (slotVisualImg) {
|
|
@@ -6412,7 +6411,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6412
6411
|
if (this.internals) {
|
|
6413
6412
|
this.internals.ariaChecked = "false";
|
|
6414
6413
|
}
|
|
6415
|
-
this.tabIndex
|
|
6414
|
+
this.setAttribute("tabIndex", "-1");
|
|
6416
6415
|
this.checked = false;
|
|
6417
6416
|
if (this.$radio) {
|
|
6418
6417
|
this.$radio.removeAttribute("checked");
|
|
@@ -6421,7 +6420,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6421
6420
|
if (this.internals) {
|
|
6422
6421
|
this.internals.ariaChecked = "true";
|
|
6423
6422
|
}
|
|
6424
|
-
this.tabIndex
|
|
6423
|
+
this.setAttribute("tabIndex", "0");
|
|
6425
6424
|
this.checked = true;
|
|
6426
6425
|
if (this.$radio) {
|
|
6427
6426
|
this.$radio.setAttribute("checked", "");
|
|
@@ -6480,7 +6479,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6480
6479
|
return this.shadowRoot.querySelector(".cell-radio");
|
|
6481
6480
|
}
|
|
6482
6481
|
get $radio() {
|
|
6483
|
-
return this.shadowRoot.querySelector("px-radio");
|
|
6482
|
+
return this.shadowRoot.querySelector("px-radio-base");
|
|
6484
6483
|
}
|
|
6485
6484
|
get $slotVisual() {
|
|
6486
6485
|
return this.querySelector('[slot="visual"]');
|
|
@@ -6648,7 +6647,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6648
6647
|
if (!customElements.get("px-cell-radio")) {
|
|
6649
6648
|
customElements.define("px-cell-radio", CellRadio);
|
|
6650
6649
|
}
|
|
6651
|
-
const styles$2 = ":host{display:block}:host *{box-sizing:border-box}button,a{display:block;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-font-line-height-l);color:var(--px-color-text-neutral-default);text-align:center;cursor:pointer;padding:2em 0;height:100%}button:after,a:after{content:attr(data-label);display:block;height:0;width:auto;visibility:hidden;overflow:hidden;-webkit-user-select:none;user-select:none;pointer-events:none;font-weight:var(--px-font-weight-title)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}button:hover,a:hover{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default)
|
|
6650
|
+
const styles$2 = ":host{display:block}:host *{box-sizing:border-box}button,a{display:block;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-font-line-height-l);color:var(--px-color-text-neutral-default);text-align:center;cursor:pointer;padding:2em 0;height:100%}button:after,a:after{content:attr(data-label);display:block;height:0;width:auto;visibility:hidden;overflow:hidden;-webkit-user-select:none;user-select:none;pointer-events:none;font-weight:var(--px-font-weight-title)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}button:hover,a:hover{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default)}button{margin:0;border:0;border-bottom:2px solid rgba(0,0,0,0);outline:0;background:inherit}button[aria-expanded=true]{font-weight:var(--px-font-weight-title);color:var(--px-color-background-container-primary-default);border-bottom-color:var(--px-color-background-container-primary-default)}a{text-decoration:none}@media only screen and (min-width: 48em){button,a{font-size:var(--px-text-size-label-m-tablet)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 64.0625em){button,a{font-size:var(--px-text-size-label-m-laptop)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625em){button,a{font-size:var(--px-text-size-label-m-desktop)}button:focus-visible,a:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}";
|
|
6652
6651
|
const stylesheet$3 = new CSSStyleSheet();
|
|
6653
6652
|
stylesheet$3.replaceSync(styles$2);
|
|
6654
6653
|
class HeaderItem extends WithExtraAttributes {
|
|
@@ -7250,9 +7249,8 @@ class Header extends WithExtraAttributes {
|
|
|
7250
7249
|
<slot name="skip"></slot>
|
|
7251
7250
|
<px-section id="navigation-container" padding-block--mobile="s" padding-block="none"
|
|
7252
7251
|
background-color="none">
|
|
7253
|
-
<px-hstack id="dropdown-zone--desktop" align-items="center">
|
|
7252
|
+
<px-hstack id="dropdown-zone--desktop" justify-content="space-between" align-items="center">
|
|
7254
7253
|
<slot name="target-group"></slot>
|
|
7255
|
-
<px-spacer></px-spacer>
|
|
7256
7254
|
<slot name="user-language"></slot>
|
|
7257
7255
|
</px-hstack>
|
|
7258
7256
|
<px-hstack gap="default" wrap="wrap" align-items="center">
|