Skip to content
Snippets Groups Projects
Commit 29a0b4a5 authored by HJ's avatar HJ :fire:
Browse files

fix shadow and opacity

parent 9af00424
No related branches found
No related tags found
2 merge requests!1074Update master with 2.0.0,!1037Themes v3 Part 1 "2.1" codenamed "One step for themes, a giant burder for code reviewers"
Pipeline #21726 failed
import ColorInput from '../color_input/color_input.vue'
import OpacityInput from '../opacity_input/opacity_input.vue'
import { hex2rgb, getCssShadow } from '../../services/color_convert/color_convert.js'
import { getCssShadow } from '../../services/style_setter/style_setter.js'
import { hex2rgb } from '../../services/color_convert/color_convert.js'
export default {
// 'Value' and 'Fallback' can be undefined, but if they are
......
......@@ -117,7 +117,7 @@ export default {
currentOpacity () {
return Object.keys(DEFAULT_OPACITY)
.map(key => [key, this[key + 'OpacityLocal']])
.reduce((acc, [key, val]) => ({ ...acc, [ key + 'OpacityLocal' ]: val }), {})
.reduce((acc, [key, val]) => ({ ...acc, [ key ]: val }), {})
},
currentRadii () {
return {
......
......@@ -76,7 +76,7 @@ export const applyTheme = (input, commit) => {
commit('setOption', { name: 'colors', value: theme.colors })
}
const getCssShadow = (input, usesDropShadow) => {
export const getCssShadow = (input, usesDropShadow) => {
if (input.length === 0) {
return 'none'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment