Skip to content

Commit

Permalink
fix(NcColorPicker): Make the color circle size clickable area agnostic
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Jul 17, 2024
1 parent ba477a2 commit 5551f38
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/NcColorPicker/NcColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
.color0 {
width: 100px;
height: 40px;
height: 34px;
border-radius: 6px;
}
</style>
Expand Down Expand Up @@ -98,7 +98,7 @@ export default {
.color1 {
width: 100px;
height: 40px;
height: 34px;
margin-left: 20px;
border-radius: 6px;
}
Expand Down Expand Up @@ -133,7 +133,7 @@ export default {
.color0 {
width: 100px;
height: 40px;
height: 34px;
margin-left: 20px;
border-radius: 6px;
}
Expand Down Expand Up @@ -433,9 +433,9 @@ export default {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
min-height: 34px;
width: calc(var(--default-clickable-area) - 10px);
height: calc(var(--default-clickable-area) - 10px);
min-height: calc(var(--default-clickable-area) - 10px);
margin: auto;
padding: 0;
color: white;
Expand All @@ -449,9 +449,9 @@ export default {
opacity: .6;
}
&--active {
width: 38px;
height: 38px;
min-height: 38px;
width: calc(var(--default-clickable-area) - 6px);
height: calc(var(--default-clickable-area) - 6px);
min-height: calc(var(--default-clickable-area) - 6px);
transition: all 100ms ease-in-out;
opacity: 1 !important;
}
Expand Down Expand Up @@ -481,8 +481,8 @@ export default {
}
&-active-color {
width: 34px;
height: 34px;
width: calc(var(--default-clickable-area) - 10 px);
height: calc(var(--default-clickable-area) - 10 px);
border-radius: 17px;
}
Expand Down

0 comments on commit 5551f38

Please sign in to comment.