@umbraco-ui/uui-tabs 0.1.1 → 1.0.0-alpha.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 +8 -8
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -38,7 +38,7 @@ let UUITabElement = class extends ActiveMixin(LabelMixin("", LitElement)) {
38
38
  UUITabElement.styles = [
39
39
  css`
40
40
  :host {
41
- color: var(--uui-tab-text, var(--uui-interface-contrast,#060606));
41
+ color: var(--uui-tab-text, var(--uui-color-interactive,#1b264f));
42
42
  font-family: inherit;
43
43
  }
44
44
 
@@ -65,7 +65,7 @@ UUITabElement.styles = [
65
65
  :host(:not([active]):not([disabled])) button:hover {
66
66
  color: var(
67
67
  --uui-tab-text-hover,
68
- var(--uui-look-primary-surface-hover, white)
68
+ var(--uui-color-default-emphasis, white)
69
69
  );
70
70
  }
71
71
 
@@ -77,12 +77,12 @@ UUITabElement.styles = [
77
77
  :host([active]) button {
78
78
  color: var(
79
79
  --uui-tab-text-active,
80
- var(--uui-look-primary-surface-hover, white)
80
+ var(--uui-color-default-emphasis, white)
81
81
  );
82
82
  cursor: default;
83
83
  }
84
84
  :host([disabled]) button {
85
- color: var(--uui-interface-contrast-disabled,rgb(115, 113, 110));
85
+ color: var(--uui-color-disabled-contrast,#c4c4c4);
86
86
  cursor: default;
87
87
  }
88
88
 
@@ -94,14 +94,14 @@ UUITabElement.styles = [
94
94
  width: calc(100% - 16px);
95
95
  left: auto;
96
96
  right: auto;
97
- background-color: var(--uui-interface-active,#f5c1bc);
97
+ background-color: var(--uui-color-current,#f5c1bc);
98
98
  bottom: 0;
99
99
  border-radius: 3px 3px 0 0;
100
100
  opacity: 0;
101
101
  transition: opacity ease-in 120ms, height ease-in 120ms;
102
102
  }
103
103
  button:hover::before {
104
- background-color: var(--uui-interface-active-hover,#f5c1bc);
104
+ background-color: var(--uui-color-current-emphasis,rgb(248, 214, 211));
105
105
  }
106
106
  :host([active]) button::before {
107
107
  opacity: 1;
@@ -110,7 +110,7 @@ UUITabElement.styles = [
110
110
  }
111
111
 
112
112
  :host([disabled]) button::before {
113
- background-color: var(--uui-interface-active-disabled,rgb(219, 212, 212));
113
+ background-color: var(--uui-color-disabled-standalone,rgb(226, 226, 226));
114
114
  }
115
115
 
116
116
  ::slotted(uui-icon) {
@@ -141,7 +141,7 @@ let UUITabGroupElement = class extends LitElement {
141
141
  super(...arguments);
142
142
  this.tabElements = [];
143
143
  this.onTabActive = (e) => {
144
- const selectedElement = e.target;
144
+ const selectedElement = e.currentTarget;
145
145
  if (this.elementIsTabLike(selectedElement)) {
146
146
  selectedElement.active = true;
147
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-tabs",
3
- "version": "0.1.1",
3
+ "version": "1.0.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,7 +30,7 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "0.1.1"
33
+ "@umbraco-ui/uui-base": "1.0.0-alpha.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
@@ -41,5 +41,5 @@
41
41
  "access": "public"
42
42
  },
43
43
  "homepage": "https://uui.umbraco.com/?path=/story/uui-tabs",
44
- "gitHead": "d91d346a0659f52de2a3c4746065c554f95e6328"
44
+ "gitHead": "7d7608bf2fb63a8a077fcd8f0346dea73584b878"
45
45
  }