Skip to content
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

USWDS-Site - Accordion: Add accordion color settings #2081

Merged
merged 12 commits into from
Jun 5, 2023
13 changes: 12 additions & 1 deletion _data/changelogs/component-accordion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ title: Accordion
type: component
changelogURL:
items:
- date: NNNN-NN-NN
summary: Added two new settings to customize accordion background colors.
summaryAdditional: You can now customize accordion button and content background colors with `$theme-accordion-button-background-color` and `$theme-accordion-background-color`.
isBreaking: false
affectsJavascript: false
affectsMarkup: false
affectsStyles: true
amyleadem marked this conversation as resolved.
Show resolved Hide resolved
affectsSettings: true
githubPr: 5269
githubRepo: uswds
versionUswds: 3.5.0
- date: NNNN-NN-NN
summary: Adjusted forced colors mode styles to ensure visibility and increase consistency.
summaryAdditional: Forced colors mode styles will now override the background color and display the button outline. The open/close icons now dynamically adjust to `ButtonText` colors.
Expand Down Expand Up @@ -48,4 +59,4 @@ items:
affectsAssets: true
githubPr: 4061
githubRepo: uswds
versionUswds: 2.10.2
versionUswds: 2.10.2
15 changes: 14 additions & 1 deletion _data/changelogs/docs-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ title: Settings
type: utility
changelogURL:
items:
- date: NNNN-NN-NN
summary: Added accordion color settings.
summaryAdditional: You can now customize accordion button and content background colors with `$theme-accordion-button-background-color` and `$theme-accordion-background-color`.
affectsAccessibility:
affectsAssets:
affectsGuidance: true
affectsSettings: true
affectsJavascript:
affectsMarkup:
affectsStyles: false
githubPr: 2081
githubRepo: uswds-site
versionUswds: 3.5.0
- date: NNNN-NN-NN
summary: Added settings for announcing external links.
summaryAdditional: Added `$theme-external-link-sr-label-tab-same` and `$theme-external-link-sr-label-tab-new` to control how screen readers announce external links.
Expand Down Expand Up @@ -126,7 +139,7 @@ items:
versionUswds: 3.0.2
- date: 2022-06-17
summary: Fixed errors related to `$theme-body-background-color`.
summaryAdditional: Updated icons so that custom background colors no longer cause compile failures.
summaryAdditional: Updated icons so that custom background colors no longer cause compile failures.
affectsAccessibility:
affectsAssets: true
affectsGuidance:
Expand Down
10 changes: 10 additions & 0 deletions _data/settings/components/accordion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Accordion
contents:
- name: Background color
description: Background color of the accordion content.
var: $theme-accordion-background-color
default: "default"
type: color
- name: Border width
description: Border width of the bordered accordion.
var: $theme-accordion-border-width
Expand All @@ -10,6 +15,11 @@ contents:
var: $theme-accordion-border-color
default: '"base-lightest"'
type: color
- name: Button background color
description: Background color of the accordion button.
var: $theme-accordion-button-background-color
default: '"base-lightest"'
type: color
- name: Font family
description: Font family of the accordion.
var: $theme-accordion-font-family
Expand Down