+
Confirm
@@ -218,6 +225,24 @@ export default {
validator: {
type: Function,
default: null
+ },
+ hourDisabled: {
+ type: Function,
+ default: () => {
+ return false
+ }
+ },
+ minuteDisabled: {
+ type: Function,
+ default: () => {
+ return false
+ }
+ },
+ secondDisabled: {
+ type: Function,
+ default: () => {
+ return false
+ }
}
},
data () {
@@ -225,7 +250,11 @@ export default {
active: false,
displayTimeString: this.value === null ? null : format(this.value, this.format),
...TIME_CONST,
- memorizedValue: this.value
+ memorizedValue: this.value,
+ selectedHour: null,
+ selectedMinute: null,
+ selectedSecond: null
+ // isErrorVal: false
}
},
computed: {
@@ -244,6 +273,28 @@ export default {
computedSecond () {
if (this.computedTime) return format(this.computedTime, 'ss')
else return null
+ },
+ isHourDisabled () {
+ let self = this
+ return function (hour) {
+ return self.hourDisabled(Number(hour)) || false
+ }
+ },
+ isMinuteDisabled () {
+ let self = this
+ return function (minute) {
+ return self.minuteDisabled(Number(minute), Number(self.computedHour)) || false
+ }
+ },
+ isSecondDisabled () {
+ let self = this
+ return function (second) {
+ return self.secondDisabled(Number(second), Number(this.computedMinute), Number(self.computedHour)) || false
+ }
+ },
+ isErrorVal () {
+ return this.isHourDisabled(this.computedHour) || this.isMinuteDisabled(this.computedMinute) ||
+ this.isSecondDisabled(this.computedSecond)
}
},
watch: {
@@ -253,8 +304,19 @@ export default {
},
value (value, oldValue) {
this.$emit('change', value, oldValue)
+ // this.checkValue()
+ },
+ active (newVal) {
+ if (!newVal) {
+ if (this.isErrorVal) {
+ this.$emit('input', this.memorizedValue)
+ }
+ }
}
},
+ // mounted () {
+ // this.checkValue()
+ // },
methods: {
afterBlur (e) {
if (this.active) {
@@ -281,25 +343,37 @@ export default {
}
},
setHours (hour) {
+ if (this.isHourDisabled(hour)) {
+ return
+ }
if (this.value === null) {
- this.$emit('input', getTime(startOfHour(new Date())))
+ this.$emit('input', getTime(setHours(startOfHour(new Date()), hour)))
} else {
this.$emit('input', getTime(setHours(this.value, hour)))
}
+ this.selectedHour = hour
},
setMinutes (minute) {
+ if (this.isMinuteDisabled(minute)) {
+ return
+ }
if (this.value === null) {
- this.$emit('input', getTime(startOfMinute(new Date())))
+ this.$emit('input', getTime(setMinutes(startOfMinute(new Date()), minute)))
} else {
this.$emit('input', getTime(setMinutes(this.value, minute)))
}
+ this.selectedMinute = minute
},
setSeconds (second) {
+ if (this.isSecondDisabled(second)) {
+ return
+ }
if (this.value === null) {
- this.$emit('input', getTime(startOfSecond(new Date())))
+ this.$emit('input', getTime(setSeconds(startOfSecond(new Date()), second)))
} else {
this.$emit('input', getTime(setSeconds(this.value, second)))
}
+ this.selectedSecond = second
},
refreshTimeString (time) {
if (time === undefined) time = this.computedTime
@@ -358,9 +432,7 @@ export default {
},
closeTimeSelector (returnFocus = false) {
this.active = false
- if (returnFocus) {
-
- } else {
+ if (!returnFocus) {
this.$emit('blur', this.value)
}
},
@@ -372,6 +444,9 @@ export default {
this.active = false
},
handleConfirmClick () {
+ if (this.isErrorVal) {
+ return
+ }
this.refreshTimeString()
this.closeTimeSelector()
}
diff --git a/packages/deprecated/NimbusFormCard/src/main.vue b/packages/deprecated/NimbusFormCard/src/main.vue
index ff5e13d6c..cbf2f9599 100644
--- a/packages/deprecated/NimbusFormCard/src/main.vue
+++ b/packages/deprecated/NimbusFormCard/src/main.vue
@@ -101,9 +101,9 @@ export default {
body.appendChild(footerPatch)
if (timeout) {
window.setTimeout(() => {
- const body = this.$refs.body
- if (body) {
- body.removeChild(footerPatch)
+ const bodyDom = this.$refs.body
+ if (bodyDom) {
+ bodyDom.removeChild(footerPatch)
}
}, timeout)
}
@@ -122,9 +122,9 @@ export default {
body.appendChild(headerPatch)
if (timeout) {
window.setTimeout(() => {
- const body = this.$refs.body
- if (body) {
- body.removeChild(headerPatch)
+ const bodyDom = this.$refs.body
+ if (bodyDom) {
+ bodyDom.removeChild(headerPatch)
}
}, timeout)
}
diff --git a/packages/mixins/placeable.js b/packages/mixins/placeable.js
index aa58672cd..69055e8f0 100644
--- a/packages/mixins/placeable.js
+++ b/packages/mixins/placeable.js
@@ -268,12 +268,12 @@ export default {
// console.log(this.$refs.contentInner)
if (this.$refs.contentInner) {
- let el = this.$refs.contentInner
+ let element = this.$refs.contentInner
if (this.$refs.contentInner.$el) {
- el = this.$refs.contentInner.$el
+ element = this.$refs.contentInner.$el
}
if (this.widthMode === 'activator') {
- el.style.minWidth = activatorBoundingClientRect.width + 'px'
+ element.style.minWidth = activatorBoundingClientRect.width + 'px'
}
}
if (el && cb) {
diff --git a/packages/utils/data/menuModel.js b/packages/utils/data/menuModel.js
index 61d75cac9..096736dc0 100644
--- a/packages/utils/data/menuModel.js
+++ b/packages/utils/data/menuModel.js
@@ -146,10 +146,10 @@ function rootedOptions (options) {
*/
function patchedOptions (options, patches) {
// console.log('patchedOptions input', options, patches)
- function traverse (options, depth = 0, parentId = 0) {
- if (!Array.isArray(options)) return
- for (let i = 0; i < options.length; ++i) {
- const option = options[i]
+ function traverse (items, depth = 0, parentId = 0) {
+ if (!Array.isArray(items)) return
+ for (let i = 0; i < items.length; ++i) {
+ const option = items[i]
const id = `${parentId}_${i + 1}`
// console.log('iterate on option', id)
if (!hasChildren(option)) {
@@ -254,13 +254,13 @@ function applyDrop ([sourceNode, targetNode, type]) {
}
function linkedCascaderOptions (options, type) {
- const linkedCascaderOptions = options
+ const cascaderOptions = options
const path = []
- function traverse (options, parent = null, depth = 0, parentId = 0) {
- if (!Array.isArray(options)) return
- const length = options.length
+ function traverse (items, parent = null, depth = 0, parentId = 0) {
+ if (!Array.isArray(items)) return
+ const length = items.length
for (let i = 0; i < length; ++i) {
- const option = options[i]
+ const option = items[i]
if (depth > 0) path.push(option.label)
/**
* option.type determine option ui status
@@ -319,16 +319,15 @@ function linkedCascaderOptions (options, type) {
}
if (depth > 0) path.pop()
}
- markAvailableSiblingIds(options)
- markFirstAvailableChildId(options)
+ markAvailableSiblingIds(items)
+ markFirstAvailableChildId(items)
}
- traverse(linkedCascaderOptions)
- return linkedCascaderOptions
+ traverse(cascaderOptions)
+ return cascaderOptions
}
-function menuOptions (linkedCascaderOptions, value, type) {
+function menuOptions (cascaderOptions, value, type) {
const valueSet = new Set(value)
- const checkedOptions = []
function traverse (options) {
if (!Array.isArray(options)) return
const length = options.length
@@ -349,7 +348,6 @@ function menuOptions (linkedCascaderOptions, value, type) {
} else {
option.checked = valueSet.has(option.value)
if (option.checked) {
- checkedOptions.push(option)
option.checkedLeafCount = 1
if (option.disabled) {
option.availableLeafCount = 0
@@ -370,7 +368,6 @@ function menuOptions (linkedCascaderOptions, value, type) {
option.checkedLeafCount = NaN
}
option.checked = valueSet.has(option.value)
- checkedOptions.push(option)
} else if (type === 'single' || type === 'single-all-options') {
if (hasChildren(option)) {
traverse(option.children)
@@ -379,18 +376,18 @@ function menuOptions (linkedCascaderOptions, value, type) {
}
}
}
- traverse(linkedCascaderOptions)
+ traverse(cascaderOptions)
// console.log('menuOptions', linkedCascaderOptions)
- return linkedCascaderOptions
+ return cascaderOptions
}
function optionPath (options, optionId) {
const path = []
if (optionId === null) return path
let done = false
- function traverseOptions (options) {
- if (!Array.isArray(options) || !options.length) return
- for (const option of options) {
+ function traverseOptions (items) {
+ if (!Array.isArray(items) || !items.length) return
+ for (const option of items) {
if (done) return
path.push(option)
if (option.id === optionId) {
@@ -429,8 +426,8 @@ function menuModel (options, activeId, trackId, loadingId) {
*/
if (option.depth === 0) continue
if (hasChildren(option)) {
- model.push(option.children.map(option => {
- return processedOption(option, activeIds, trackId, loadingId)
+ model.push(option.children.map(item => {
+ return processedOption(item, activeIds, trackId, loadingId)
}))
}
}
diff --git a/packages/utils/dom/calcPlacementTransform.js b/packages/utils/dom/calcPlacementTransform.js
index ee3092fae..2a229d74b 100644
--- a/packages/utils/dom/calcPlacementTransform.js
+++ b/packages/utils/dom/calcPlacementTransform.js
@@ -3,7 +3,7 @@ export default function calcPlacementTransform (placement, activatorRect, conten
let contentTop = null
let contentRight = null
let contentBottom = null
- let suggesetedTransfromOrigin = 'none'
+ let suggesetedTransfromOrigin
if (placement === 'top-start') {
contentTop = activatorRect.top - contentRect.height
contentLeft = activatorRect.left
@@ -29,7 +29,6 @@ export default function calcPlacementTransform (placement, activatorRect, conten
contentLeft = activatorRect.left - contentRect.width
suggesetedTransfromOrigin = 'bottom right'
} else if (placement === 'right-start') {
- console.log(activatorRect, contentRect)
const toWindowBottom = window.innerHeight - activatorRect.top - contentRect.height
const toWindowRight = window.innerWidth - activatorRect.right - contentRect.width
if (toWindowBottom < 0) {
@@ -59,11 +58,11 @@ export default function calcPlacementTransform (placement, activatorRect, conten
const toWindowRight = window.innerWidth - activatorRect.left - contentRect.width
if (contentRect.height > toWindowBottom && activatorRect.top > toWindowBottom) {
contentBottom = toWindowBottom + activatorRect.height
- contentTop = null
+ // contentTop = null
suggesetedTransfromOrigin = 'bottom'
} else {
contentTop = activatorRect.top + activatorRect.height
- contentBottom = null
+ // contentBottom = null
suggesetedTransfromOrigin = 'top'
}
if (toWindowRight < 0) {
diff --git a/styles/AdvancedTable.scss b/styles/AdvancedTable.scss
index e214ea9de..a4283d0b5 100644
--- a/styles/AdvancedTable.scss
+++ b/styles/AdvancedTable.scss
@@ -110,9 +110,6 @@
&::-webkit-scrollbar-track {
background: transparent;
}
- &::-webkit-scrollbar-thumb {
- border-radius: 2.5px;
- }
&::-webkit-scrollbar-corner {
background: transparent;
}
diff --git a/styles/Anchor.scss b/styles/Anchor.scss
index a01a389ab..78e79e24b 100644
--- a/styles/Anchor.scss
+++ b/styles/Anchor.scss
@@ -61,7 +61,7 @@
display: flex;
flex-direction: column;
& > {
- @include b(anchor-link) {
+ @include b(anchor-link) {
padding-left: 16px;
}
}
@@ -81,7 +81,7 @@
padding-right: 16px;
transition: color .3s $default-cubic-bezier;
}
- color: map-get($--anchor-link-title-text-color, 'default');;
+ color: map-get($--anchor-link-title-text-color, 'default');
&:hover, &:focus {
color: map-get($--anchor-link-title-text-color, 'hover');
}
diff --git a/styles/BackTop.scss b/styles/BackTop.scss
index 507b16da4..b1a589274 100644
--- a/styles/BackTop.scss
+++ b/styles/BackTop.scss
@@ -13,7 +13,7 @@
}
@include e(default-button) {
@include once {
- transition: box-shadow .3s $default-cubic-bezier, fill .3s $default-cubic-bezier;;
+ transition: box-shadow .3s $default-cubic-bezier, fill .3s $default-cubic-bezier;
border-radius: 20px;
height: 40px;
width: 40px;
diff --git a/styles/BaseLoading.scss b/styles/BaseLoading.scss
index 8ac5051ed..268050617 100644
--- a/styles/BaseLoading.scss
+++ b/styles/BaseLoading.scss
@@ -1,7 +1,6 @@
@import './mixins/mixins.scss';
@import './themes/vars.scss';
-
@keyframes n-base-loading-rotate {
to {
transform: rotate(1turn)
diff --git a/styles/BasePicker.scss b/styles/BasePicker.scss
index 7bee3d4fb..e3fab66d7 100644
--- a/styles/BasePicker.scss
+++ b/styles/BasePicker.scss
@@ -296,6 +296,4 @@
}
}
}
-}
-
-
+}
\ No newline at end of file
diff --git a/styles/BaseSelectMenu.scss b/styles/BaseSelectMenu.scss
index 62f8d27b4..38f0206b6 100644
--- a/styles/BaseSelectMenu.scss
+++ b/styles/BaseSelectMenu.scss
@@ -102,7 +102,7 @@
}
}
@include b(base-select-menu-light-bar) {
- transition: background-color .3s $default-cubic-bezier;
+ // transition: background-color .3s $default-cubic-bezier;
position: absolute;
width:100%;
background-color: $--base-select-menu-light-bar-background-color;
diff --git a/styles/Checkbox.scss b/styles/Checkbox.scss
index 882dad1d1..012b6bbd1 100644
--- a/styles/Checkbox.scss
+++ b/styles/Checkbox.scss
@@ -41,8 +41,8 @@
transform: scale(0.5);
transform-origin: center;
transition: transform 0.3s $default-cubic-bezier,
- opacity 0.3s $default-cubic-bezier,
- border-color 0.3s $default-cubic-bezier;
+ opacity 0.3s $default-cubic-bezier,
+ border-color 0.3s $default-cubic-bezier;
}
@include e(check-mark) {
content: "";
@@ -56,8 +56,8 @@
transform: scale(0.5);
transform-origin: center;
transition: transform 0.3s $default-cubic-bezier,
- opacity 0.3s $default-cubic-bezier,
- border-color 0.3s $default-cubic-bezier;
+ opacity 0.3s $default-cubic-bezier,
+ border-color 0.3s $default-cubic-bezier;
}
}
@include e(label) {
diff --git a/styles/CustomInput.scss b/styles/CustomInput.scss
index 61c5987ff..a3c3cfead 100644
--- a/styles/CustomInput.scss
+++ b/styles/CustomInput.scss
@@ -27,7 +27,6 @@
}
.n-input-key-value__item--action {
width: 70px;
- display: inline-block;
align-items: center;
display: flex;
margin-left: 13px;
diff --git a/styles/DatePicker.scss b/styles/DatePicker.scss
index 3cba0e2f9..c9b3f01f9 100644
--- a/styles/DatePicker.scss
+++ b/styles/DatePicker.scss
@@ -9,6 +9,13 @@
@include m(range) {
// width: 382px;
}
+ @include m (error) {
+ @include b(input) {
+ @include e(input) {
+ color: red;
+ }
+ }
+ }
}
}
@@ -90,6 +97,14 @@
@include b(time-picker) {
width: 145px;
}
+ @include b(input) {
+ @include m(error) {
+ color: red;
+ @include e(input) {
+ color: red;
+ }
+ }
+ }
}
border-bottom: 1px solid $--date-picker-divider-color;
}
@@ -147,6 +162,12 @@
display: flex;
justify-content: space-between;
flex-wrap: wrap;
+ @include e(date-input) {
+ color: red;
+ @include m(error) {
+ color: red;
+ }
+ }
}
@include e(date) {
@include once {
@@ -218,6 +239,10 @@
background-color: map-get($--date-picker-item-sup-color, 'active');
}
}
+ @include m(disabled) {
+ cursor: not-allowed;
+ opacity: 0.45;
+ }
}
}
@include e(divider) {
@@ -238,6 +263,12 @@
margin-bottom: 0;
margin-right: 12px;
}
+ @include e(confirm) {
+ @include m(disabled) {
+ cursor: not-allowed;
+ opacity: 0.5;
+ }
+ }
}
border-top: 1px solid $--date-picker-divider-color;
}
diff --git a/styles/Input.scss b/styles/Input.scss
index 45364a094..89257008e 100644
--- a/styles/Input.scss
+++ b/styles/Input.scss
@@ -93,7 +93,7 @@
height: $--input-icon-size;
width: $--input-icon-size;
@include b(icon) {
- font-size: $--input-icon-size;;
+ font-size: $--input-icon-size;
path {
transition: fill .3s $default-cubic-bezier;
}
diff --git a/styles/Log.scss b/styles/Log.scss
index 6cb4b55d0..75eff8efc 100644
--- a/styles/Log.scss
+++ b/styles/Log.scss
@@ -41,14 +41,18 @@
color: $--n-secondary-text-color;
background-color: $--n-dialog-color;
line-height: 34px;
+ /* stylelint-disable */
font-family: 'Lato';
+ /* stylelint-enable */
white-space: nowrap;
overflow: hidden;
@include e(content) {
display: inline-block;
vertical-align: bottom;
line-height: 34px;
+ /* stylelint-disable */
font-family: 'Lato';
+ /* stylelint-enable */
padding-left: 40px;
padding-right: 20px;
white-space: nowrap;
diff --git a/styles/Menu.scss b/styles/Menu.scss
index 07ac1508d..b88219dd0 100644
--- a/styles/Menu.scss
+++ b/styles/Menu.scss
@@ -6,7 +6,6 @@ $layout-nav-height: 64px;
@include themes-mixin() {
@include b(menu) {
- background-color: $menu-background-color;
width: 100%;
transition:width .3s;
@include b(menu-container) {
@@ -44,8 +43,27 @@ $layout-nav-height: 64px;
clip-path: polygon(100% 0, 100% 100%, 0% 100%);
}
}
- @include m(selected) {
+ // @include m(selected) {
+ // background-image: $menu-item-selected-background-image;
+ // }
+ &::before { // item background
+ content: "";
+ background-size: 300%;
background-image: $menu-item-selected-background-image;
+ background-position: $--menu-item-background-position;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ z-index: 0;
+ transition: opacity 0.3s $default-cubic-bezier;
+ opacity: 0;
+ }
+ @include m(selected) {
+ &::before {
+ opacity: .9;
+ }
}
@include m(disabled) {
opacity: 0.45;
diff --git a/styles/Notification.scss b/styles/Notification.scss
index dde38205c..aca84dc62 100644
--- a/styles/Notification.scss
+++ b/styles/Notification.scss
@@ -47,13 +47,13 @@
color: $--notification-text-color;
@include once {
transition:
- background-color .3s $default-cubic-bezier,
- color .3s $default-cubic-bezier,
- opacity .3s $default-cubic-bezier,
- transform .3s $default-cubic-bezier,
- max-height .3s $default-cubic-bezier,
- margin-bottom .3s linear,
- box-shadow .3s $default-cubic-bezier;
+ background-color .3s $default-cubic-bezier,
+ color .3s $default-cubic-bezier,
+ opacity .3s $default-cubic-bezier,
+ transform .3s $default-cubic-bezier,
+ max-height .3s $default-cubic-bezier,
+ margin-bottom .3s linear,
+ box-shadow .3s $default-cubic-bezier;
font-family: $default-font-family;
font-size: 14px;
font-weight: 400;
@@ -114,7 +114,6 @@
padding-top: 16px;
padding-bottom: 16px;
box-sizing: border-box;
- width: 100%;
display: flex;
flex-direction: column;
margin-left: 40px;
diff --git a/styles/Slider.scss b/styles/Slider.scss
index 9ee4a39aa..c690574d7 100644
--- a/styles/Slider.scss
+++ b/styles/Slider.scss
@@ -138,13 +138,4 @@
background-color: $--slider-indicator-background-color;
box-shadow: $--slider-indicator-box-shadow;
}
-}
-
-
-
-
-
-
-
-
-
+}
\ No newline at end of file
diff --git a/styles/Statistic.scss b/styles/Statistic.scss
index bf562fee6..aa1393e00 100644
--- a/styles/Statistic.scss
+++ b/styles/Statistic.scss
@@ -3,7 +3,9 @@
@include themes-mixin {
@include b(statistic) {
@include once {
+ /* stylelint-disable */
font-family: 'Lato';
+ /* stylelint-enable */
}
@include b(statistic-value) {
@include once {
diff --git a/styles/Switch.scss b/styles/Switch.scss
index e9e996a21..71f3ff4dc 100644
--- a/styles/Switch.scss
+++ b/styles/Switch.scss
@@ -58,13 +58,6 @@
}
}
}
- &::before {
- box-shadow: $--switch-switcher-box-shadow;
- transition: $--switch-switcher-transition;
- }
- &::after {
- transition: $--switch-switcher-transition;
- }
background-color: map-get($map: $--switch-rail-background-color, $key: 'inactive');
&::before {
background-image: map-get($map: $--switch-switcher-color, $key: 'inactive');
diff --git a/styles/Thing.scss b/styles/Thing.scss
index d14a6d1dd..9d36b395e 100644
--- a/styles/Thing.scss
+++ b/styles/Thing.scss
@@ -27,9 +27,9 @@
font-weight: 700;
transition: color .3s $default-cubic-bezier;
}
- @include e(extra) {
+ // @include e(extra) {
- }
+ // }
justify-content: space-between;
align-items: center;
}
diff --git a/styles/TimePicker.scss b/styles/TimePicker.scss
index e4a0fcf2c..1f6657c33 100644
--- a/styles/TimePicker.scss
+++ b/styles/TimePicker.scss
@@ -8,6 +8,19 @@
display: inline-block;
width: 180px;
}
+ @include b(time-picker-input) {
+ @include m(error) {
+ color: red;
+ input {
+ color: red!important;
+ }
+ // @include b(input) {
+ // @include e(input) {
+ // color: red
+ // }
+ // }
+ }
+ }
}
@include b(time-picker-selector) {
@include once {
@@ -18,10 +31,16 @@
width: 180px;
overflow: hidden;
@include fade-in-scale-up-transition(time-picker);
- @include e(actions) {
+ @include b(time-picker-selector-actions) {
padding: 10px 15px;
display: flex;
justify-content: space-around;
+ @include e(confirm) {
+ @include m(disabled) {
+ cursor: not-allowed;
+ opacity: 0.5;
+ }
+ }
}
}
background-color: $--time-picker-background-color;
@@ -58,6 +77,10 @@
background-color: $--time-picker-item-background-color;
color: map-get($--time-picker-text-color, 'active');
}
+ @include m(disabled) {
+ opacity: 0.45;
+ cursor: not-allowed;
+ }
}
}
}
diff --git a/styles/Timeline.scss b/styles/Timeline.scss
index ddc20dc82..d6fa177ad 100644
--- a/styles/Timeline.scss
+++ b/styles/Timeline.scss
@@ -144,6 +144,4 @@ $--timeline-header-margin-top: (
}
}
}
-}
-
-
+}
\ No newline at end of file
diff --git a/styles/base.scss b/styles/base.scss
index cbb092af9..dc771fef0 100644
--- a/styles/base.scss
+++ b/styles/base.scss
@@ -2,7 +2,6 @@
@import './themes/vars.scss';
@import './Detachable.scss';
-
html {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
diff --git a/styles/mixins/color.scss b/styles/mixins/color.scss
index e69de29bb..ab0c01417 100644
--- a/styles/mixins/color.scss
+++ b/styles/mixins/color.scss
@@ -0,0 +1 @@
+//
\ No newline at end of file
diff --git a/styles/themes/dark/components/Affix.scss b/styles/themes/dark/components/Affix.scss
index 79cffb699..a89fe4f98 100644
--- a/styles/themes/dark/components/Affix.scss
+++ b/styles/themes/dark/components/Affix.scss
@@ -1,3 +1,3 @@
@mixin setup-dark-affix {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/dark/components/AutoComplete.scss b/styles/themes/dark/components/AutoComplete.scss
index f508b3268..f5db35e6e 100644
--- a/styles/themes/dark/components/AutoComplete.scss
+++ b/styles/themes/dark/components/AutoComplete.scss
@@ -1,3 +1,3 @@
@mixin setup-dark-auto-complete {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/dark/components/Drawer.scss b/styles/themes/dark/components/Drawer.scss
index 7e0cedea4..b31f44903 100644
--- a/styles/themes/dark/components/Drawer.scss
+++ b/styles/themes/dark/components/Drawer.scss
@@ -1,3 +1,3 @@
@mixin setup-dark-drawer {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/dark/components/Form.scss b/styles/themes/dark/components/Form.scss
index daf774fa1..0c861a19f 100644
--- a/styles/themes/dark/components/Form.scss
+++ b/styles/themes/dark/components/Form.scss
@@ -1,3 +1,3 @@
@mixin setup-dark-form {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/dark/components/GradientText.scss b/styles/themes/dark/components/GradientText.scss
index 9163a4558..a225bb518 100644
--- a/styles/themes/dark/components/GradientText.scss
+++ b/styles/themes/dark/components/GradientText.scss
@@ -6,7 +6,7 @@
"error": linear-gradient(252deg, $--error-6 0%, $--error-hs 100%),
"info": linear-gradient(252deg, $--info-6 0%, $--info-hs 100%),
) !global;
-};
+}
// $default-text-gradient-warning: ;
// $default-text-gradient-success: linear-gradient(14deg, rgba(120,205,104,1) 0%, rgba(20,166,165,1) 100%);
diff --git a/styles/themes/dark/components/List.scss b/styles/themes/dark/components/List.scss
index 3555dd7e1..ea62f9cc5 100644
--- a/styles/themes/dark/components/List.scss
+++ b/styles/themes/dark/components/List.scss
@@ -1,3 +1,3 @@
@mixin setup-dark-list {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/dark/components/Menu.scss b/styles/themes/dark/components/Menu.scss
index e89c6db2e..9f71ea969 100644
--- a/styles/themes/dark/components/Menu.scss
+++ b/styles/themes/dark/components/Menu.scss
@@ -1,5 +1,5 @@
@mixin setup-dark-menu {
$menu-background-color: $--n-card-color !global;
- $menu-item-selected-background-image: linear-gradient(47deg,rgba(232,232,235,.4) 0%,rgba(31,38,62,.4) 100%) !global;
- $--service-kayout-item-active-color: $--primary-6 !global;
+ $menu-item-selected-background-image: linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .03) 40%, rgba(0, 0, 0, .09) 60%, rgba(0, 0, 0, .09) 100%) !global;
+ $--menu-item-background-position: 0% !global;
}
\ No newline at end of file
diff --git a/styles/themes/dark/jsIndex.scss b/styles/themes/dark/jsIndex.scss
index 15148355a..3c381d79c 100644
--- a/styles/themes/dark/jsIndex.scss
+++ b/styles/themes/dark/jsIndex.scss
@@ -2,6 +2,7 @@
@include setup-dark-theme($in-js-env: true);
+/* stylelint-disable */
:export {
primaryColor: $--primary-5;
primaryHoverColor: $--primary-6;
@@ -32,4 +33,5 @@
borderColor: $--neutral-7;
borderOverlayColor: $--overlay-7;
cubicBezierEaseInOut: cubic-bezier(.4, 0, .2, 1);
-}
\ No newline at end of file
+}
+/* stylelint-enable */
\ No newline at end of file
diff --git a/styles/themes/light/components/Affix.scss b/styles/themes/light/components/Affix.scss
index da21342bd..5064cdd02 100644
--- a/styles/themes/light/components/Affix.scss
+++ b/styles/themes/light/components/Affix.scss
@@ -1,3 +1,3 @@
@mixin setup-light-affix {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/light/components/AutoComplete.scss b/styles/themes/light/components/AutoComplete.scss
index 0b6e6b747..e162bce4c 100644
--- a/styles/themes/light/components/AutoComplete.scss
+++ b/styles/themes/light/components/AutoComplete.scss
@@ -1,3 +1,3 @@
@mixin setup-light-auto-complete {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/light/components/Drawer.scss b/styles/themes/light/components/Drawer.scss
index 7605744d4..24804d422 100644
--- a/styles/themes/light/components/Drawer.scss
+++ b/styles/themes/light/components/Drawer.scss
@@ -1,3 +1,3 @@
@mixin setup-light-drawer {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/light/components/Form.scss b/styles/themes/light/components/Form.scss
index 2733876e8..8213f3f14 100644
--- a/styles/themes/light/components/Form.scss
+++ b/styles/themes/light/components/Form.scss
@@ -1,3 +1,3 @@
@mixin setup-light-form {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/light/components/List.scss b/styles/themes/light/components/List.scss
index 9465c2be4..f53bd8fb0 100644
--- a/styles/themes/light/components/List.scss
+++ b/styles/themes/light/components/List.scss
@@ -1,3 +1,3 @@
@mixin setup-light-list {
-
+ //
}
\ No newline at end of file
diff --git a/styles/themes/light/components/Menu.scss b/styles/themes/light/components/Menu.scss
index b829bb3bf..00ff96cd0 100644
--- a/styles/themes/light/components/Menu.scss
+++ b/styles/themes/light/components/Menu.scss
@@ -1,5 +1,5 @@
@mixin setup-light-menu {
$menu-background-color: $--neutral-10 !global;
- $menu-item-selected-background-image: linear-gradient(47deg, $--neutral-7, $--neutral-7) !global;
- $--service-kayout-item-active-color: $--primary-6 !global;
+ $menu-item-selected-background-image: linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .03) 40%, rgba(0, 0, 0, .09) 60%, rgba(0, 0, 0, .09) 100%) !global;
+ $--menu-item-background-position: 100% !global;
}
\ No newline at end of file
diff --git a/styles/themes/light/components/NimbusForm.scss b/styles/themes/light/components/NimbusForm.scss
index 78ffcbb8a..8b74366a5 100644
--- a/styles/themes/light/components/NimbusForm.scss
+++ b/styles/themes/light/components/NimbusForm.scss
@@ -1,5 +1,5 @@
@mixin setup-light-nimbus-form {
- $--nimbus-form-background-color:white !global;;
+ $--nimbus-form-background-color:white !global;
$--nimbus-form-title-color: $--n-text-color !global;
$--nimbus-form-text-color: $--n-secondary-text-color !global;
$--nimbus-form-divider-color:$--n-divider-color !global;
diff --git a/styles/themes/light/jsIndex.scss b/styles/themes/light/jsIndex.scss
index f776087e7..65d5a4271 100644
--- a/styles/themes/light/jsIndex.scss
+++ b/styles/themes/light/jsIndex.scss
@@ -2,6 +2,7 @@
@include setup-light-theme($in-js-env: true);
+/* stylelint-disable */
:export {
primaryColor: $--primary-5;
primaryHoverColor: $--primary-6;
@@ -32,4 +33,5 @@
borderColor: $--neutral-6;
borderOverlayColor: $--overlay-6;
cubicBezierEaseInOut: cubic-bezier(.4, 0, .2, 1);
-}
\ No newline at end of file
+}
+/* stylelint-enable */
\ No newline at end of file
diff --git a/test/unit/specs/packages/utils/data/menuModel.spec.js b/test/unit/specs/packages/utils/data/menuModel.spec.js
index ed7896fcd..b74dd9297 100644
--- a/test/unit/specs/packages/utils/data/menuModel.spec.js
+++ b/test/unit/specs/packages/utils/data/menuModel.spec.js
@@ -1,6 +1,5 @@
import {
rootedOptions,
- patchedOptions,
linkedOptions,
menuOptions
} from 'packages/utils/component/menuModel'