-
Notifications
You must be signed in to change notification settings - Fork 54
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
Dark accordions #1025
Dark accordions #1025
Conversation
This time, pa11y-ci failed with a real error 😄
You can try with a lighter gray. Another solution is to let the text black and highlight it with white. Example of implementation: diff --git a/scss/_accordion.scss b/scss/_accordion.scss
index 72636e5a6..5d8819124 100644
--- a/scss/_accordion.scss
+++ b/scss/_accordion.scss
@@ -149,5 +149,10 @@
border-bottom: $accordion-border-width solid $accordion-dark-border-color;
}
}
+
+ var,
+ code {
+ color: $code-dark-color;
+ }
}
// End mod
diff --git a/scss/_variables.scss b/scss/_variables.scss
index ba383bed6..3f96338a5 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -1788,6 +1788,7 @@ $offcanvas-backdrop-opacity: $modal-backdrop-opacity !default;
$code-font-size: .875em !default;
$code-color: $gray-700 !default;
+$code-dark-color: $gray-300 !default; // Boosted mod
$kbd-padding-y: $spacer * .05 !default;
$kbd-padding-x: $spacer * .05 !default; |
Differents solutions I've seen so far, and I'm confused about the one to choose :
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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.
As discussed in DM, the issue regarding the <code>
happens too with the links (displayed black with a black bg). We should wait to identify a solution to tackle those 2 topics before merging this PR.
Signed-off-by: louismaximepiton <louismaxime.piton@orange.com>
Signed-off-by: louismaximepiton <louismaxime.piton@orange.com>
6ca0a1b
to
fa64a2a
Compare
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.
Sound good to me after the dark texts PR and some minor modifications. @louismaximepiton I let you check my last commits on this branch. If it's OK for you then I can merge it.
Description
Adding a
.accordion-dark
for a dark variant of accordions.Motivation & Context
Need for orange footers
Types of changes
Checklist
npm run lint
)Development
scss-docs
shortcoderebase -i
feat(…): …
messageMention it in Migration Guide (ifback-from-v4
): renamed variables, changes in markup requirement, etc.Reviews
A11y reviewDesign reviewRelated issues
#917
Live preview