@umbraco-ui/uui-tabs 1.12.1 → 1.13.0-rc.0

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.
Files changed (2) hide show
  1. package/lib/index.js +13 -6
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -133,7 +133,7 @@ UUITabElement.styles = [
133
133
  right: auto;
134
134
  border-radius: var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0 0;
135
135
  height: 0px;
136
- width: calc(100% - 15px);
136
+ width: calc(100% - 14px);
137
137
  bottom: 0;
138
138
  transition:
139
139
  opacity linear 120ms,
@@ -256,7 +256,11 @@ let UUITabGroupElement = class extends LitElement {
256
256
  const hasActiveHidden = __privateGet(this, _hiddenTabElements).some(
257
257
  (el) => el.active && el !== linkedElement
258
258
  );
259
- hasActiveHidden ? this._moreButtonElement.classList.add("active-inside") : this._moreButtonElement.classList.remove("active-inside");
259
+ if (hasActiveHidden) {
260
+ this._moreButtonElement.classList.add("active-inside");
261
+ } else {
262
+ this._moreButtonElement.classList.remove("active-inside");
263
+ }
260
264
  }
261
265
  });
262
266
  }
@@ -272,7 +276,7 @@ let UUITabGroupElement = class extends LitElement {
272
276
  render() {
273
277
  return html`
274
278
  <div id="main">
275
- <div id="grid">
279
+ <div id="grid" role="tablist">
276
280
  <slot @slotchange=${__privateMethod(this, _UUITabGroupElement_instances, onSlotChange_fn)}></slot>
277
281
  </div>
278
282
  <uui-button
@@ -288,7 +292,7 @@ let UUITabGroupElement = class extends LitElement {
288
292
  id="popover-container"
289
293
  popover
290
294
  placement="bottom-end">
291
- <div id="hidden-tabs-container">
295
+ <div id="hidden-tabs-container" role="tablist">
292
296
  ${repeat(__privateGet(this, _hiddenTabElements), (el) => html`${el}`)}
293
297
  </div>
294
298
  </uui-popover-container>
@@ -308,7 +312,6 @@ initialize_fn = async function() {
308
312
  demandCustomElement(this, "uui-button");
309
313
  demandCustomElement(this, "uui-popover-container");
310
314
  demandCustomElement(this, "uui-symbol-more");
311
- if (!this.hasAttribute("role")) this.setAttribute("role", "tablist");
312
315
  await this.updateComplete;
313
316
  __privateGet(this, _resizeObserver).observe(this._mainElement);
314
317
  };
@@ -407,7 +410,11 @@ updateCollapsibleTabs_fn = function(containerWidth) {
407
410
  } else {
408
411
  this._moreButtonElement.style.display = "";
409
412
  }
410
- hasActiveTabInDropdown ? this._moreButtonElement.classList.add("active-inside") : this._moreButtonElement.classList.remove("active-inside");
413
+ if (hasActiveTabInDropdown) {
414
+ this._moreButtonElement.classList.add("active-inside");
415
+ } else {
416
+ this._moreButtonElement.classList.remove("active-inside");
417
+ }
411
418
  this.requestUpdate();
412
419
  };
413
420
  isElementTabLike_fn = function(el) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-tabs",
3
- "version": "1.12.1",
3
+ "version": "1.13.0-rc.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,10 +30,10 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.12.1",
34
- "@umbraco-ui/uui-button": "1.12.1",
35
- "@umbraco-ui/uui-popover-container": "1.12.1",
36
- "@umbraco-ui/uui-symbol-more": "1.12.1"
33
+ "@umbraco-ui/uui-base": "1.13.0-rc.0",
34
+ "@umbraco-ui/uui-button": "1.13.0-rc.0",
35
+ "@umbraco-ui/uui-popover-container": "1.13.0-rc.0",
36
+ "@umbraco-ui/uui-symbol-more": "1.13.0-rc.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "homepage": "https://uui.umbraco.com/?path=/story/uui-tabs",
47
- "gitHead": "a7d67a9f6b60b8c0b351b21d5dac49cdfc764f44"
47
+ "gitHead": "864afa6c182c2a73c479237732dadc1abc69a4a0"
48
48
  }