mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-13 08:22:22 +00:00
Keep button labels readable inside colored hints (#4677)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix low-contrast button labels inside success, warning and danger hints.
|
||||
@@ -135,10 +135,10 @@ const HINT_STYLES: {
|
||||
header: 'bg-warning-active',
|
||||
body: [
|
||||
'text-neutral-strong',
|
||||
'links-default:[&_a]:text-warning',
|
||||
'links-default:[&_a:hover]:text-warning-strong',
|
||||
'links-default:[&_a]:decoration-warning/6',
|
||||
'links-accent:[&_a]:decoration-warning',
|
||||
'links-default:[&_a:not(.button)]:text-warning',
|
||||
'links-default:[&_a:not(.button):hover]:text-warning-strong',
|
||||
'links-default:[&_a:not(.button)]:decoration-warning/6',
|
||||
'links-accent:[&_a:not(.button)]:decoration-warning',
|
||||
'decoration-warning/6',
|
||||
'[&_.can-override-bg]:bg-warning-active',
|
||||
'[&_.can-override-text]:text-warning-strong',
|
||||
@@ -152,10 +152,10 @@ const HINT_STYLES: {
|
||||
header: 'bg-danger-active',
|
||||
body: [
|
||||
'text-neutral-strong',
|
||||
'links-default:[&_a]:text-danger',
|
||||
'links-default:[&_a:hover]:text-danger-strong',
|
||||
'links-default:[&_a]:decoration-danger/6',
|
||||
'links-accent:[&_a]:decoration-danger',
|
||||
'links-default:[&_a:not(.button)]:text-danger',
|
||||
'links-default:[&_a:not(.button):hover]:text-danger-strong',
|
||||
'links-default:[&_a:not(.button)]:decoration-danger/6',
|
||||
'links-accent:[&_a:not(.button)]:decoration-danger',
|
||||
'decoration-danger/6',
|
||||
'[&_.can-override-bg]:bg-danger-active',
|
||||
'[&_.can-override-text]:text-danger-strong',
|
||||
@@ -169,10 +169,10 @@ const HINT_STYLES: {
|
||||
header: 'bg-success-active',
|
||||
body: [
|
||||
'text-neutral-strong',
|
||||
'links-default:[&_a]:text-success',
|
||||
'links-default:[&_a:hover]:text-success-strong',
|
||||
'links-default:[&_a]:decoration-success/6',
|
||||
'links-accent:[&_a]:decoration-success',
|
||||
'links-default:[&_a:not(.button)]:text-success',
|
||||
'links-default:[&_a:not(.button):hover]:text-success-strong',
|
||||
'links-default:[&_a:not(.button)]:decoration-success/6',
|
||||
'links-accent:[&_a:not(.button)]:decoration-success',
|
||||
'decoration-success/6',
|
||||
'[&_.can-override-bg]:bg-success-active',
|
||||
'[&_.can-override-text]:text-success-strong',
|
||||
|
||||
Reference in New Issue
Block a user