@itfin/components 1.2.51 → 1.2.52

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.2.51",
3
+ "version": "1.2.52",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -21,6 +21,19 @@
21
21
  &.itf-tabs__simple > .itf-tabs-panel {
22
22
  padding-left: 0 !important;
23
23
  }
24
+ .itf-tab__simple {
25
+ text-decoration: none;
26
+ padding-right: 2rem;
27
+ color: var(--bs-gray-500);
28
+
29
+ [data-theme="dark"] & {
30
+ color: var(--bs-gray-700);
31
+ }
32
+
33
+ &.active {
34
+ color: var(--bs-body-color);
35
+ }
36
+ }
24
37
  &.itf-tabs__vertical {
25
38
  display: flex;
26
39
  flex-direction: row-reverse;
@@ -84,7 +97,7 @@
84
97
  flex-grow: 1;
85
98
  z-index: 1;
86
99
  margin-right: -1px;
87
-
100
+
88
101
  @include media-breakpoint-up(lg) {
89
102
  max-width: calc(100% - var(--itf-tabs-panel-width));
90
103
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="active || (tabsManager && tabsManager.getValue() === id)"
4
- :class="{ filled, 'itf-tab-content': !simple }"
4
+ :class="{ filled }"
5
5
  :data-test="`itf-tab-content-${id || _uid}`">
6
6
  <slot />
7
7
  </div>
@@ -19,9 +19,5 @@ class itfTabContent extends Vue {
19
19
  @Prop() id;
20
20
  @Prop(Boolean) filled;
21
21
  @Prop(Boolean) active;
22
-
23
- get simple() {
24
- return this.tabsManager && this.tabsManager.simple;
25
- }
26
22
  }
27
23
  </script>
@@ -90,7 +90,7 @@ class itfTabs extends Vue {
90
90
  }
91
91
 
92
92
  return {
93
- staticClass: this.simple ? 'text-decoration-none pe-3' : 'itf-tab',
93
+ staticClass: this.simple ? 'itf-tab__simple' : 'itf-tab',
94
94
  class: {
95
95
  'active': this.isActive(node)
96
96
  },