-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TMS-1044: Accordion-block open all / close all functionality #511
Conversation
assets/scripts/accordion.js
Outdated
/** | ||
* Opens all dropdowns. | ||
* | ||
* @param {HTMLButtonElement} mainContainer Main container for accordion dropdowns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param {HTMLButtonElement} mainContainer Main container for accordion dropdowns. | |
* @param {HTMLDivElement} mainContainer Main container for accordion dropdowns. |
?
assets/scripts/accordion.js
Outdated
/** | ||
* Closes all dropdowns. | ||
* | ||
* @param {HTMLButtonElement} mainContainer Main container for accordion dropdowns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param {HTMLButtonElement} mainContainer Main container for accordion dropdowns. | |
* @param {HTMLDivElement} mainContainer Main container for accordion dropdowns. |
assets/scripts/accordion.js
Outdated
/** | ||
* Updates "Close all" or "Open all" -button states depending on open accordion dropdowns. | ||
* | ||
* @param {HTMLButtonElement} mainContainer Main container for accordion dropdowns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param {HTMLButtonElement} mainContainer Main container for accordion dropdowns. | |
* @param {HTMLDivElement} mainContainer Main container for accordion dropdowns. |
color: $primary !important; | ||
background-color: transparent !important; | ||
border: none !important; | ||
border-radius: 0 !important; | ||
|
||
.icon { | ||
margin-left: $theme-spacing-three-quarters !important; | ||
} | ||
|
||
&:hover { | ||
filter: none !important; | ||
box-shadow: none !important; | ||
text-decoration: underline !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Voisi kommentoida, miksi käytetty !important.
Yliajetaanko esim. bulman tyylejä?
'expand' => _x( 'Expand', 'theme-frontend', 'tms-theme-base' ), | ||
'collapse' => _x( 'Collapse', 'theme-frontend', 'tms-theme-base' ), | ||
'expand_all' => _x( 'Expand all sections', 'theme-frontend', 'tms-theme-base' ), | ||
'collapse_all' => _x( 'Collapse all sections', 'theme-frontend', 'tms-theme-base' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'expand' => _x( 'Expand', 'theme-frontend', 'tms-theme-base' ), | |
'collapse' => _x( 'Collapse', 'theme-frontend', 'tms-theme-base' ), | |
'expand_all' => _x( 'Expand all sections', 'theme-frontend', 'tms-theme-base' ), | |
'collapse_all' => _x( 'Collapse all sections', 'theme-frontend', 'tms-theme-base' ), | |
'expand' => \_x( 'Expand', 'theme-frontend', 'tms-theme-base' ), | |
'collapse' => \_x( 'Collapse', 'theme-frontend', 'tms-theme-base' ), | |
'expand_all' => \_x( 'Expand all sections', 'theme-frontend', 'tms-theme-base' ), | |
'collapse_all' => \_x( 'Collapse all sections', 'theme-frontend', 'tms-theme-base' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tarkista vielä kommentit
Severa-ID: 2108
Severa-kuvaus: TMS-1044 Haitarilohkoon kehitystä
Task: https://hiondigital.atlassian.net/browse/TMS-1044
Description
Types of changes