mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 10:08:52 +08:00
add disabled state for dropDownChevron
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<svg
|
||||
class="chevron-icon"
|
||||
:class="['chevron-icon', {'disabled': disabled}]"
|
||||
width="20"
|
||||
height="20"
|
||||
viewBox="0 0 20 20"
|
||||
@@ -14,7 +14,8 @@
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'DropDownChevron'
|
||||
name: 'DropDownChevron',
|
||||
props: ['disabled']
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -26,4 +27,12 @@ export default {
|
||||
.chevron-icon:hover path {
|
||||
fill: var(--color-accent);
|
||||
}
|
||||
|
||||
.disabled.chevron-icon {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.disabled.chevron-icon:hover path {
|
||||
fill: #C8D4E3;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user