Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #659 from WordPress/fix-calendar-colors
Browse files Browse the repository at this point in the history
Fix colors for calendar block
  • Loading branch information
luminuu authored Oct 16, 2023
2 parents 3c63aa4 + 782fab0 commit a2f66da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions styles/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
},
"styles": {
"blocks": {
"core/calendar": {
"css": ".wp-block-calendar table:where(:not(.has-text-color)) th{background-color:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base);border-color:var(--wp--preset--color--contrast)} & table:where(:not(.has-text-color)) td{border-color:var(--wp--preset--color--contrast)}"
},
"core/comment-date": {
"color": {
"text": "var(--wp--preset--color--contrast)"
Expand Down
6 changes: 6 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@
"blockGap": "0.7rem"
}
},
"core/calendar": {
"color": {
"text": "var(--wp--preset--color--contrast)"
},
"css": ".wp-block-calendar table:where(:not(.has-text-color)) th{background-color:var(--wp--preset--color--contrast-2);color:var(--wp--preset--color--base);border-color:var(--wp--preset--color--contrast-2)} & table:where(:not(.has-text-color)) td{border-color:var(--wp--preset--color--contrast-2)}"
},
"core/categories": {
"spacing": {
"padding": {
Expand Down

0 comments on commit a2f66da

Please sign in to comment.