Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"hideActions": "Hide the expand icon in the content title.",
"static": "Remove title size expansion when selected.",
"focusable": "Makes the expansion panel headers focusable.",
"readonly": "Makes the expansion panel content read only."
"readonly": "Makes the expansion panel content read only.",
"hover": "Enables the hover effect on the expansion panel title."
},
"slots": {
"actions": "Slot for the actions."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@
&--focusable.v-expansion-panel-title--active
@include tools.active-states('.v-expansion-panel-title__overlay')

&--no-hover
.v-expansion-panel-title__overlay
opacity: 0 !important

.v-expansion-panel-title__overlay
background-color: currentColor
border-radius: inherit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export const makeVExpansionPanelTitleProps = propsFactory({
default: false,
},
readonly: Boolean,
hover: {
type: Boolean as PropType<boolean>,
default: true,
},

...makeComponentProps(),
...makeDimensionProps(),
Expand Down Expand Up @@ -89,6 +93,7 @@ export const VExpansionPanelTitle = genericComponent<VExpansionPanelTitleSlots>(
'v-expansion-panel-title--active': expansionPanel.isSelected.value,
'v-expansion-panel-title--focusable': props.focusable,
'v-expansion-panel-title--static': props.static,
'v-expansion-panel-title--no-hover': !props.hover,
},
backgroundColorClasses.value,
props.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const makeVExpansionPanelsProps = propsFactory({
'expandIcon',
'focusable',
'hideActions',
'hover',
'readonly',
'ripple',
'static',
Expand Down Expand Up @@ -96,6 +97,7 @@ export const VExpansionPanels = genericComponent<new <TModel>(
expandIcon: toRef(() => props.expandIcon),
focusable: toRef(() => props.focusable),
hideActions: toRef(() => props.hideActions),
hover: toRef(() => props.hover),
readonly: toRef(() => props.readonly),
ripple: toRef(() => props.ripple),
static: toRef(() => props.static),
Expand Down
Loading