Skip to content

Commit

Permalink
Use const and fix icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro committed Jan 19, 2024
1 parent d281333 commit 5786edd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/vue-form-builder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
}"
:boundary="'viewport'"
:data-cy="`controls-${element.component}`"
class="gray-text"
>
<i
v-if="element.config && element.config.icon"
Expand Down Expand Up @@ -532,6 +533,7 @@ const defaultGroupOrder = {
"Advanced" : 5.0,
};

const DEFAULT_GROUP = "Advanced";

export default {
components: {
Expand Down Expand Up @@ -647,7 +649,7 @@ export default {
let groupName = _.get(control, 'group', null);

if (!groupName) {
groupName = "Advanced";
groupName = DEFAULT_GROUP;
}

let existingGroupIndex = groups.findIndex((group) => {
Expand Down Expand Up @@ -1294,11 +1296,11 @@ export default {

<style>
.gray-text {
color: gray;
color: #556271;
}

.icon {
color: gray;
color: #6A7888;
}
.custom-row {
height: 80vh;
Expand All @@ -1311,6 +1313,10 @@ export default {
.svg-icon > svg {
margin-bottom: 3px;
}

.svg-icon > svg > path {
fill: #6A7888;
}
</style>

<style lang="scss" scoped>
Expand Down

0 comments on commit 5786edd

Please sign in to comment.