Skip to content
Merged
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
9 changes: 2 additions & 7 deletions core/src/components/accordion/accordion.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,5 @@

// Disabled Accordion
// --------------------------------------------------

:host(.accordion-disabled)::before {
@include globals.border-radius(inherit);
@include globals.disabled-state();

z-index: 2;
}
// The disabled colors are set in core.ionic.scss because the header
// and content are slotted (light DOM).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions core/src/css/ionic/core.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,19 @@ ion-accordion.accordion-animated > [slot="header"] .ion-accordion-toggle-icon {
transition: globals.$ion-transition-time-300 transform globals.$ion-transition-curve-quick;
}

// A disabled accordion keeps its background and switches its text and
// icons to the disabled colors. Descendant selectors cover nested
// accordions, which are disabled with their parent.
ion-accordion.accordion-disabled [slot="header"],
ion-accordion.accordion-disabled [slot="content"],
ion-accordion.accordion-disabled [slot="content"] ion-item {
color: globals.$ion-text-disabled;
}
ion-accordion.accordion-disabled ion-icon,
ion-accordion.accordion-disabled [slot="header"] .ion-accordion-toggle-icon {
color: globals.$ion-icon-disabled;
}

@media (prefers-reduced-motion: reduce) {
ion-accordion .ion-accordion-toggle-icon {
/* stylelint-disable declaration-no-important */
Expand Down
Loading