@@ -119,11 +107,7 @@ function Calendar() {
'wporg-meeting-calendar'
) }
>
-
+
diff --git a/src/frontend/icons/arrow.js b/src/frontend/icons/arrow.js
index 2b0b9cd..a65b827 100644
--- a/src/frontend/icons/arrow.js
+++ b/src/frontend/icons/arrow.js
@@ -3,7 +3,7 @@
*/
import { SVG, Path } from '@wordpress/primitives';
-export default function ( { fill = '#3858E9' } ) {
+export default function () {
return (
);
diff --git a/src/frontend/icons/calendar.js b/src/frontend/icons/calendar.js
index 1173d64..71aa196 100644
--- a/src/frontend/icons/calendar.js
+++ b/src/frontend/icons/calendar.js
@@ -3,7 +3,7 @@
*/
import { SVG, Path } from '@wordpress/primitives';
-export default function ( { fill = 'white' } ) {
+export default function () {
return (
);
diff --git a/src/frontend/icons/list.js b/src/frontend/icons/list.js
index 7700e33..9863d46 100644
--- a/src/frontend/icons/list.js
+++ b/src/frontend/icons/list.js
@@ -3,7 +3,7 @@
*/
import { SVG, Path } from '@wordpress/primitives';
-export default function ( { fill = 'white' } ) {
+export default function () {
return (
);
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index 102b09c..7a0065c 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -70,6 +70,10 @@
&.is-primary {
background-color: var(--wp--preset--color--charcoal-1, #1e1e1e);
}
+
+ &.is-secondary {
+ color: var(--wp--preset--color--charcoal-1, #1e1e1e);
+ }
}
}
@@ -132,8 +136,9 @@
height: 40px;
&:disabled {
- background-color: var(--wp--preset--color--light-grey-2, #F6F6F6);
+ background-color: var(--wp--preset--color--light-grey-2, #f6f6f6);
box-shadow: none !important;
+ color: var(--wp--preset--color--charcoal-1, #1e1e1e);
svg {
opacity: 0.5;
From 1b5564ffc2c58e2b8dad0f8684dbd272f632b53a Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Thu, 10 Oct 2024 16:31:29 +1300
Subject: [PATCH 09/20] Style calendar events and modal
---
src/frontend/calendar/cell.js | 46 ++++++-----
src/frontend/style.scss | 141 +++++++++++++++++++++-------------
2 files changed, 114 insertions(+), 73 deletions(-)
diff --git a/src/frontend/calendar/cell.js b/src/frontend/calendar/cell.js
index 36a2829..565651b 100644
--- a/src/frontend/calendar/cell.js
+++ b/src/frontend/calendar/cell.js
@@ -37,16 +37,18 @@ function CalendarCell( {
- { format( 'g:i a: ', event.datetime ) }
+ { format( 'g:i a ', event.datetime ) }
{ event.title }
@@ -84,16 +86,18 @@ function CalendarCell( {
onClick={ onToggle }
aria-expanded={ isOpen }
>
- { // translators: %d: Count of hidden events, ie: 4.
- sprintf(
- _n(
- '%d more',
- '%d more',
- restOfEvents.length,
- 'wporg'
- ),
- restOfEvents.length
- ) }
+ {
+ // translators: %d: Count of hidden events, ie: 4.
+ sprintf(
+ _n(
+ '%d more',
+ '%d more',
+ restOfEvents.length,
+ 'wporg'
+ ),
+ restOfEvents.length
+ )
+ }
) }
renderContent={ () => (
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index 7a0065c..12fba5c 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -80,13 +80,17 @@
.wporg-meeting-calendar__cell-event.components-button {
display: block;
position: relative;
- padding: 4px;
- margin: 4px 0;
- font-size: 12px;
- font-weight: bold;
- font-weight: normal;
+ padding: 8px;
+ margin: 8px 0;
+ font-size: var(--wp--preset--font-size--small, 14px);
border-radius: 2px;
width: 100%;
+
+ &.is-link {
+ border: 1px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));
+ background: var(--wp--preset--color--blueberry-4, #EFF2FF);
+ text-decoration: none;
+ }
}
.wporg-meeting-calendar__cell-event.is-cancelled,
@@ -95,16 +99,10 @@
text-decoration: line-through !important;
}
-
/* These styles are separate for !important specificity with `wporg-meeting-calendar__team-*` styles below. */
-.wporg-meeting-calendar__cell-event {
- background: #0085ba !important;
- color: #fff !important;
- text-decoration: none !important;
-}
.wporg-meeting-calendar__cell-event:focus {
- text-decoration: underline !important;
- box-shadow: 0 0 0 1px black, 0 0 2px 1px rgba(0, 0, 0, 0.8) !important;
+ text-decoration: underline;
+ box-shadow: 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));
}
.wporg-meeting-calendar__dropdown .components-menu-group {
@@ -117,13 +115,12 @@
}
.wporg-meeting-calendar__cell-event-time {
- font-weight: normal;
+ font-weight: 700;
+ margin-bottom: 4px;
}
.wporg-meeting-calendar__cell-event-title {
- font-weight: bold;
display: block;
- white-space: nowrap;
overflow: hidden;
}
@@ -327,9 +324,8 @@
}
.wporg-meeting-calendar__cell {
- border: 1px solid #ddd;
- padding: var(--wp--preset--spacing--10);
- padding: 4px;
+ border: 1px solid var(--wp--preset--color--light-grey-1, #d9d9d9);
+ padding: var(--wp--preset--spacing--10, 10px);
vertical-align: top;
height: 180px; /* height acts as min-height on table cells */
@@ -352,72 +348,99 @@
/** Colors for each team */
.wporg-meeting-calendar__team-core {
- background: #cd0000 !important;
+ border-color: #cd0000 !important;
+ background-color: lighten(#cd0000, 55%) !important;
+ color: #cd0000 !important;
}
.wporg-meeting-calendar__team-design {
- background: #eec26a !important;
+ border-color: #eec26a !important;
+ background-color: lighten(#eec26a, 30%) !important;
+ color: darken(#eec26a, 40%) !important;
}
.wporg-meeting-calendar__team-mobile {
- background: #fba16c !important;
+ border-color: #fba16c !important;
+ background-color: lighten(#fba16c, 30%) !important;
+ color: #fba16c !important;
}
.wporg-meeting-calendar__team-polyglots {
- background: #c32283 !important;
+ border-color: #c32283 !important;
+ background-color: lighten(#c32283, 45%) !important;
+ color: darken(#c32283, 10%) !important;
}
.wporg-meeting-calendar__team-support {
- background: #33b4ce !important;
+ border-color: #33b4ce !important;
+ background-color: lighten(#33b4ce, 40%) !important;
+ color: darken(#33b4ce, 20%) !important;
}
.wporg-meeting-calendar__team-docs,
.wporg-meeting-calendar__team-documentation {
- background: #3b7236 !important;
+ border-color: #3b7236 !important;
+ background-color: lighten(#3b7236, 55%) !important;
+ color: #3b7236 !important;
}
.wporg-meeting-calendar__team-themes {
- background: #4e3288 !important;
+ border-color: #4e3288 !important;
+ background-color: lighten(#4e3288, 55%) !important;
+ color: #4e3288 !important;
}
.wporg-meeting-calendar__team-plugins {
- background: #f06723 !important;
+ border-color: #f06723 !important;
+ background-color: lighten(#f06723, 55%) !important;
+ color: #f06723 !important;
}
.wporg-meeting-calendar__team-accessibility,
.wporg-meeting-calendar__team-community {
- background: #11799d !important;
+ border-color: #11799d !important;
+ background-color: lighten(#11799d, 60%) !important;
+ color: darken(#11799d, 10%) !important;
}
.wporg-meeting-calendar__team-meta {
- background: #aeadad !important;
+ border-color: #aeadad !important;
+ background-color: lighten(#aeadad, 30%) !important;
+ color: darken(#aeadad, 30%) !important;
}
-.wporg-meeting-calendar__team-training {
- background: #e9c02d !important;
+.wporg-meeting-calendar__team-training,
+.wporg-meeting-calendar__team-openverse {
+ border-color: #e9c02d !important;
+ background-color: lighten(#e9c02d, 40%) !important;
+ color: darken(#e9c02d, 25%) !important;
}
.wporg-meeting-calendar__team-tv {
- background: #73ad30 !important;
+ border-color: #73ad30 !important;
+ background-color: lighten(#73ad30, 45%) !important;
+ color: darken(#73ad30, 20%) !important;
}
.wporg-meeting-calendar__team-marketing {
- background: #47bea7 !important;
+ border-color: #47bea7 !important;
+ background-color: lighten(#47bea7, 55%) !important;
+ color: #47bea7 !important;
}
.wporg-meeting-calendar__team-cli {
- background: #424242 !important;
+ border-color: #424242 !important;
+ background-color: lighten(#424242, 55%) !important;
+ color: #424242 !important;
}
.wporg-meeting-calendar__team-hosting {
- background: #5358a6 !important;
+ border-color: #5358a6 !important;
+ background-color: lighten(#5358a6, 45%) !important;
+ color: #5358a6 !important;
}
.wporg-meeting-calendar__team-tide {
- background: #1526ff !important;
-}
-.wporg-meeting-calendar__team-bbpress {
- background: #2d8e42 !important;
+ border-color: #1526ff !important;
+ background-color: lighten(#1526ff, 40%) !important;
+ color: #1526ff !important;
}
-.wporg-meeting-calendar__team-buddypress {
- background: #d84800 !important;
-}
-.wporg-meeting-calendar__team-design,
-.wporg-meeting-calendar__team-mobile,
-.wporg-meeting-calendar__team-support,
-.wporg-meeting-calendar__team-plugins,
-.wporg-meeting-calendar__team-meta,
-.wporg-meeting-calendar__team-training,
-.wporg-meeting-calendar__team-tv,
-.wporg-meeting-calendar__team-marketing,
.wporg-meeting-calendar__team-bbpress,
-.wporg-meeting-calendar__team-buddypress {
- color: #000 !important;
+.wporg-meeting-calendar__team-sustainability {
+ border-color: #2d8e42 !important;
+ background-color: lighten(#2d8e42, 55%) !important;
+ color: darken(#2d8e42, 10%) !important;
+}
+.wporg-meeting-calendar__team-buddypress,
+.wporg-meeting-calendar__team-test {
+ border-color: #d84800 !important;
+ background-color: lighten(#d84800, 50%) !important;
+ color: darken(#d84800, 10%) !important;
}
.wporg-meeting-calendar__filter {
@@ -478,6 +501,20 @@
margin: 0 auto;
}
+.wporg-meeting-calendar__modal {
+ border-radius: unset;
+ box-shadow: unset;
+
+ .components-modal__content {
+ padding: 0 var(--wp--preset--spacing--30, 30px) var(--wp--preset--spacing--30, 30px);
+ }
+
+ .components-modal__header .components-modal__header-heading {
+ font-family: var(--wp--preset--font-family--inter, sans-serif);
+ line-height: var(--wp--custom--heading--level-1--typography--line-height, 1.3);
+ }
+}
+
.wporg-meeting-calendar__modal h1 {
font-size: 16px !important;
}
From 49428e80aa60d18b9e594558653e8ecde88157a7 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Thu, 10 Oct 2024 16:35:10 +1300
Subject: [PATCH 10/20] Fix translator comment placement
---
src/frontend/calendar/cell.js | 40 ++++++++++++++++-------------------
1 file changed, 18 insertions(+), 22 deletions(-)
diff --git a/src/frontend/calendar/cell.js b/src/frontend/calendar/cell.js
index 565651b..c2f090a 100644
--- a/src/frontend/calendar/cell.js
+++ b/src/frontend/calendar/cell.js
@@ -37,18 +37,16 @@ function CalendarCell( {
{ format( 'F j', date ) }{ ' ' }
- {
+ { sprintf(
// translators: %d: Count of all events, ie: 4.
- sprintf(
- _n(
- '%d event',
- '%d events',
- dayEvents.length,
- 'wporg'
- ),
- dayEvents.length
- )
- }
+ _n(
+ '%d event',
+ '%d events',
+ dayEvents.length,
+ 'wporg'
+ ),
+ dayEvents.length
+ ) }
{ day }
@@ -86,18 +84,16 @@ function CalendarCell( {
onClick={ onToggle }
aria-expanded={ isOpen }
>
- {
+ { sprintf(
// translators: %d: Count of hidden events, ie: 4.
- sprintf(
- _n(
- '%d more',
- '%d more',
- restOfEvents.length,
- 'wporg'
- ),
- restOfEvents.length
- )
- }
+ _n(
+ '%d more',
+ '%d more',
+ restOfEvents.length,
+ 'wporg'
+ ),
+ restOfEvents.length
+ ) }
) }
renderContent={ () => (
From 8a54b3168f9d092777eccd0b86474b52062edae3 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Thu, 10 Oct 2024 18:00:39 +1300
Subject: [PATCH 11/20] Restyle the list view
---
src/frontend/list/list-item.js | 90 +++++++++++++--------
src/frontend/style.scss | 143 ++++++++++++++-------------------
2 files changed, 117 insertions(+), 116 deletions(-)
diff --git a/src/frontend/list/list-item.js b/src/frontend/list/list-item.js
index 9787171..099fd85 100644
--- a/src/frontend/list/list-item.js
+++ b/src/frontend/list/list-item.js
@@ -31,7 +31,11 @@ function ListItem( { date, events } ) {
setTeam( event.team );
speak(
sprintf(
- __( 'Showing meetings for %s', 'wporg-meeting-calendar' ),
+ // translators: %s is the team name
+ __(
+ 'Showing meetings for %s',
+ 'wporg-meeting-calendar'
+ ),
event.team
)
);
@@ -43,21 +47,19 @@ function ListItem( { date, events } ) {
}` }
key={ event.instance_id }
>
-
- { format( 'g:i a ', event.datetime ) }
-
- { format( '(\\U\\T\\CP)', date ) }
-
-
-
- { event.team && (
+ { event.team && (
+
+ ) }
+
+
+
+ { format( 'g:i a ', event.datetime ) }
+ { format( '(\\U\\T\\CP)', date ) }
+
+
+
+
+ { __( 'Meets: ', 'wporg-meeting-calendar' ) }
+ { getFrequencyLabel( event ) }
+
+
+ { __( 'Location: ', 'wporg-meeting-calendar' ) }
+ { getSlackLink( event.location ) }
+
+
+ { !! event.wptv_url && (
-
+ ) }
);
} ) }
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index 12fba5c..09810b9 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -1,5 +1,6 @@
.wporg-block-meeting-calendar {
margin: 0 auto 32px;
+ font-size: var(--wp--preset--font-size--normal, 16px);
}
.wporg-block-meeting-calendar table {
@@ -153,10 +154,6 @@
text-align: center;
}
-.wporg-meeting-calendar__list-empty {
- font-size: 16px;
-}
-
.wporg-meeting-calendar__list {
padding: 0;
margin: 0;
@@ -169,79 +166,90 @@
}
.wporg-meeting-calendar__list-title {
- padding: 6px 0;
display: block;
- background: #ddd;
- font-size: 16px;
- margin-top: 16px;
- background: none;
+ font-size: var(--wp--preset--font-size--medium, 18px);
+ font-weight: 600;
+ margin: var(--wp--preset--spacing--30, 30px) 0 var(--wp--preset--spacing--20, 20px);
}
.wporg-meeting-calendar__list-event {
position: relative;
display: flex;
- border-bottom: 1px solid #aaa;
- background: #fff;
-}
+ flex-direction: column;
+ gap: var(--wp--preset--spacing--20, 20px);
+ background: var(--wp--preset--color--white, #fff);
+ border: 1px solid var(--wp--preset--color--light-grey-1, #d9d9d9);
+ padding: var(--wp--preset--spacing--20, 20px);
+
+ &:first-of-type {
+ border-top-left-radius: 2px;
+ border-top-right-radius: 2px;
+ }
+
+ &:last-of-type {
+ border-bottom-left-radius: 2px;
+ border-bottom-right-radius: 2px;
+ }
+
+ & + .wporg-meeting-calendar__list-event {
+ border-top: unset;
+ }
-.wporg-meeting-calendar__list-event > div {
- padding: 12px;
+ @media (min-width: 600px) {
+ align-items: center;
+ flex-direction: row;
+ }
}
-.wporg-meeting-calendar__list-event > div:first-child {
- min-width: 90px;
- font-size: 16px;
+.wporg-meeting-calendar__list-event-time {
+ font-size: var(--wp--preset--font-size--small, 14px);
+ color: var(--wp--preset--color--charcoal-4, #656A71);
}
-.wporg-meeting-calendar__list-event-tz {
- font-size: 12px;
- color: #999;
+.wporg-meeting-calendar__list-event-team-wrapper {
+ flex-basis: 15%;
}
.wporg-meeting-calendar__list-event-team {
- font-size: 14px;
- padding: 2px 6px;
- margin-bottom: 8px;
- border-radius: 4px;
- text-decoration: none !important;
- background: #0085ba;
- color: #fff !important;
display: inline-block;
- font-family: sans-serif;
- width: 90px;
+ font-size: var(--wp--preset--font-size--small, 14px);
text-align: center;
+ padding: 7px 12px;
+ margin-bottom: 8px;
+ border-radius: 2px;
+ text-decoration: none !important;
+ background: var(--wp--preset--color--blueberry-4, #EFF2FF);
+ color: var(--wp--preset--color--blueberry-1, #3858e9) !important;
+ line-height: var(--wp--custom--heading--level-1--typography--line-height, 1.3);
}
.wporg-meeting-calendar__list-event-team:hover,
.wporg-meeting-calendar__list-event-team:active,
.wporg-meeting-calendar__list-event-team:focus {
- color: #fff;
text-decoration: underline !important;
}
.wporg-meeting-calendar__list-event-title {
- font-size: 24px;
- margin: 0 0 8px 0 !important;
- padding: 0 !important;
-}
+ font-size: var(--wp--preset--font-size--normal, 16px);
+ font-weight: 400;
+ margin: unset !important;
-.wporg-meeting-calendar__list-event-copy {
- margin-top: 0 !important;
- font-size: 16px;
-}
+ a {
+ color: var(--wp--preset--color--charcoal-1, #1e1e1e);
+ text-decoration: none !important;
-.wporg-meeting-calendar__list-event-details {
- display: flex;
- align-items: flex-start;
+ &:hover {
+ text-decoration: underline !important;
+ }
+ }
}
-@media (min-width: 600px) {
- .wporg-meeting-calendar__list-event-details div:first-child {
- padding-left: 32px;
- }
+.wporg-meeting-calendar__list-event-copy {
+ margin-top: 0 !important;
+ margin-bottom: 4px;
- .wporg-meeting-calendar__list-event-team {
- margin: 0 16px;
+ &:last-child {
+ margin-bottom: 0;
}
}
@@ -258,49 +266,20 @@
}
.wporg-meeting-calendar__modal-overlay {
- font-size: 14px;
-}
-
-.wporg-meeting-calendar__list-event {
- margin: 12px 0;
- border: 1px solid rgba(100, 100, 100, 0.3);
- border-radius: 2px;
-}
-
-.wporg-meeting-calendar__list-event-title {
- margin-top: 0 !important;
-}
-
-.wporg-meeting-calendar__list-event-title a {
- color: #333;
- font-size: 20px;
-}
-
-.wporg-meeting-calendar__list-event-title a:hover {
- text-decoration: underline;
+ font-size: var(--wp--preset--font-size--small, 14px);
}
-.wporg-meeting-calendar__list-event-copy {
- color: #555D66;
- font-weight: 200;
- font-size: 14px !important;
+.wporg-meeting-calendar__list-event-header {
+ flex: 1;
}
-.wporg-meeting-calendar__list-event,
.wporg-meeting-calendar__list-event-details {
- flex-direction: column;
+ flex-basis: 35%;
}
.wporg-meeting-calendar__header,
.wporg-meeting-calendar__list {
- padding: 12px;
-}
-
-@media (min-width: 600px) {
- .wporg-meeting-calendar__list-event,
- .wporg-meeting-calendar__list-event-details {
- flex-direction: row;
- }
+ padding: 12px 0;
}
@media (min-width: 960px) {
@@ -396,7 +375,7 @@
}
.wporg-meeting-calendar__team-meta {
border-color: #aeadad !important;
- background-color: lighten(#aeadad, 30%) !important;
+ background-color: lighten(#aeadad, 25%) !important;
color: darken(#aeadad, 30%) !important;
}
.wporg-meeting-calendar__team-training,
From 0a5b9d9152e1cf81eb0d59ebc54dc21f07516360 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Thu, 10 Oct 2024 21:02:06 +1300
Subject: [PATCH 12/20] Add RSS feed link
---
src/frontend/feed/index.js | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/frontend/feed/index.js b/src/frontend/feed/index.js
index caa6a20..992ce14 100644
--- a/src/frontend/feed/index.js
+++ b/src/frontend/feed/index.js
@@ -28,11 +28,17 @@ const Feed = () => {
} );
};
+ const getRSSUrl = () => {
+ const baseUrl = window.location.origin;
+
+ return `${ baseUrl }/feed/?post_type=meeting`;
+ };
+
return (
);
From a28bede31ed25eaa3b95b4e1727f8803d00dec84 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Thu, 10 Oct 2024 21:05:11 +1300
Subject: [PATCH 13/20] Increase specificity of list event title styles
Override global h3 styles
---
src/frontend/style.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index 09810b9..e964137 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -229,7 +229,7 @@
text-decoration: underline !important;
}
-.wporg-meeting-calendar__list-event-title {
+h3.wporg-meeting-calendar__list-event-title {
font-size: var(--wp--preset--font-size--normal, 16px);
font-weight: 400;
margin: unset !important;
From b64ae0a60849e8623fdaa04701b62f1943b1b121 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Fri, 11 Oct 2024 10:29:14 +1300
Subject: [PATCH 14/20] Adjust spacing around list expand button
---
src/frontend/style.scss | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index e964137..9403511 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -150,7 +150,7 @@
}
.wporg-meeting-calendar__list-expand {
- margin-top: 16px;
+ margin: var(--wp--preset--spacing--20, 20px) 0 0;
text-align: center;
}
@@ -163,6 +163,10 @@
.wporg-meeting-calendar__list li {
list-style: none;
margin: 0;
+
+ &:first-child .wporg-meeting-calendar__list-title {
+ margin-top: 0;
+ }
}
.wporg-meeting-calendar__list-title {
From 84a4a09a19b46017873b4dfcd49b5293c005e060 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Mon, 14 Oct 2024 11:48:51 +1300
Subject: [PATCH 15/20] Migrate from sass lighten and darken to sass:color
---
src/frontend/style.scss | 56 +++++++++++++++++++++--------------------
1 file changed, 29 insertions(+), 27 deletions(-)
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index 9403511..7f8aa31 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -1,3 +1,5 @@
+@use "sass:color";
+
.wporg-block-meeting-calendar {
margin: 0 auto 32px;
font-size: var(--wp--preset--font-size--normal, 16px);
@@ -332,98 +334,98 @@ h3.wporg-meeting-calendar__list-event-title {
/** Colors for each team */
.wporg-meeting-calendar__team-core {
border-color: #cd0000 !important;
- background-color: lighten(#cd0000, 55%) !important;
+ background-color: color.adjust(#cd0000, $lightness: 55%) !important;
color: #cd0000 !important;
}
.wporg-meeting-calendar__team-design {
border-color: #eec26a !important;
- background-color: lighten(#eec26a, 30%) !important;
- color: darken(#eec26a, 40%) !important;
+ background-color: color.adjust(#eec26a, $lightness: 30%) !important;
+ color: color.adjust(#eec26a, $lightness: -40%) !important;
}
.wporg-meeting-calendar__team-mobile {
border-color: #fba16c !important;
- background-color: lighten(#fba16c, 30%) !important;
+ background-color: color.adjust(#fba16c, $lightness: 30%) !important;
color: #fba16c !important;
}
.wporg-meeting-calendar__team-polyglots {
border-color: #c32283 !important;
- background-color: lighten(#c32283, 45%) !important;
- color: darken(#c32283, 10%) !important;
+ background-color: color.adjust(#c32283, $lightness: 45%) !important;
+ color: color.adjust(#c32283, $lightness: -10%) !important;
}
.wporg-meeting-calendar__team-support {
border-color: #33b4ce !important;
- background-color: lighten(#33b4ce, 40%) !important;
- color: darken(#33b4ce, 20%) !important;
+ background-color: color.adjust(#33b4ce, $lightness: 40%) !important;
+ color: color.adjust(#33b4ce, $lightness: -20%) !important;
}
.wporg-meeting-calendar__team-docs,
.wporg-meeting-calendar__team-documentation {
border-color: #3b7236 !important;
- background-color: lighten(#3b7236, 55%) !important;
+ background-color: color.adjust(#3b7236, $lightness: 55%) !important;
color: #3b7236 !important;
}
.wporg-meeting-calendar__team-themes {
border-color: #4e3288 !important;
- background-color: lighten(#4e3288, 55%) !important;
+ background-color: color.adjust(#4e3288, $lightness: 55%) !important;
color: #4e3288 !important;
}
.wporg-meeting-calendar__team-plugins {
border-color: #f06723 !important;
- background-color: lighten(#f06723, 55%) !important;
+ background-color: color.adjust(#f06723, $lightness: 55%) !important;
color: #f06723 !important;
}
.wporg-meeting-calendar__team-accessibility,
.wporg-meeting-calendar__team-community {
border-color: #11799d !important;
- background-color: lighten(#11799d, 60%) !important;
- color: darken(#11799d, 10%) !important;
+ background-color: color.adjust(#11799d, $lightness: 60%) !important;
+ color: color.adjust(#11799d, $lightness: -10%) !important;
}
.wporg-meeting-calendar__team-meta {
border-color: #aeadad !important;
- background-color: lighten(#aeadad, 25%) !important;
- color: darken(#aeadad, 30%) !important;
+ background-color: color.adjust(#aeadad, $lightness: 25%) !important;
+ color: color.adjust(#aeadad, $lightness: -30%) !important;
}
.wporg-meeting-calendar__team-training,
.wporg-meeting-calendar__team-openverse {
border-color: #e9c02d !important;
- background-color: lighten(#e9c02d, 40%) !important;
- color: darken(#e9c02d, 25%) !important;
+ background-color: color.adjust(#e9c02d, $lightness: 40%) !important;
+ color: color.adjust(#e9c02d, $lightness: -25%) !important;
}
.wporg-meeting-calendar__team-tv {
border-color: #73ad30 !important;
- background-color: lighten(#73ad30, 45%) !important;
- color: darken(#73ad30, 20%) !important;
+ background-color: color.adjust(#73ad30, $lightness: 45%) !important;
+ color: color.adjust(#73ad30, $lightness: -20%) !important;
}
.wporg-meeting-calendar__team-marketing {
border-color: #47bea7 !important;
- background-color: lighten(#47bea7, 55%) !important;
+ background-color: color.adjust(#47bea7, $lightness: 55%) !important;
color: #47bea7 !important;
}
.wporg-meeting-calendar__team-cli {
border-color: #424242 !important;
- background-color: lighten(#424242, 55%) !important;
+ background-color: color.adjust(#424242, $lightness: 55%) !important;
color: #424242 !important;
}
.wporg-meeting-calendar__team-hosting {
border-color: #5358a6 !important;
- background-color: lighten(#5358a6, 45%) !important;
+ background-color: color.adjust(#5358a6, $lightness: 45%) !important;
color: #5358a6 !important;
}
.wporg-meeting-calendar__team-tide {
border-color: #1526ff !important;
- background-color: lighten(#1526ff, 40%) !important;
+ background-color: color.adjust(#1526ff, $lightness: 40%) !important;
color: #1526ff !important;
}
.wporg-meeting-calendar__team-bbpress,
.wporg-meeting-calendar__team-sustainability {
border-color: #2d8e42 !important;
- background-color: lighten(#2d8e42, 55%) !important;
- color: darken(#2d8e42, 10%) !important;
+ background-color: color.adjust(#2d8e42, $lightness: 55%) !important;
+ color: color.adjust(#2d8e42, $lightness: -10%) !important;
}
.wporg-meeting-calendar__team-buddypress,
.wporg-meeting-calendar__team-test {
border-color: #d84800 !important;
- background-color: lighten(#d84800, 50%) !important;
- color: darken(#d84800, 10%) !important;
+ background-color: color.adjust(#d84800, $lightness: 50%) !important;
+ color: color.adjust(#d84800, $lightness: -10%) !important;
}
.wporg-meeting-calendar__filter {
From 1a462b49883ca5e0f89f338fe0ea33c7d01e2230 Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Mon, 14 Oct 2024 12:37:27 +1300
Subject: [PATCH 16/20] Add css lint config and GitHub action, fix issues
---
.github/workflows/lint-frontend.yml | 30 ++++
package-lock.json | 29 +++-
package.json | 3 +-
src/frontend/style.scss | 240 +++++++++++++++-------------
style.css | 1 +
5 files changed, 188 insertions(+), 115 deletions(-)
create mode 100644 .github/workflows/lint-frontend.yml
diff --git a/.github/workflows/lint-frontend.yml b/.github/workflows/lint-frontend.yml
new file mode 100644
index 0000000..c44c799
--- /dev/null
+++ b/.github/workflows/lint-frontend.yml
@@ -0,0 +1,30 @@
+name: Static Analysis (Linting)
+
+# This workflow is triggered on pushes to trunk, and any PRs.
+on:
+ push:
+ branches: [master]
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ check:
+ name: Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install NodeJS
+ uses: actions/setup-node@v4
+ with:
+ node-version-file: '.nvmrc'
+ cache: 'npm'
+
+ - name: npm install and build
+ run: |
+ npm ci
+ npm run build
+
+ - name: Lint Styles
+ run: |
+ npm run lint:css
diff --git a/package-lock.json b/package-lock.json
index c3f5af6..6dbea53 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,7 +10,8 @@
"license": "GPL-2.0-or-later",
"devDependencies": {
"@wordpress/env": "9.7.0",
- "@wordpress/scripts": "27.9.0"
+ "@wordpress/scripts": "27.9.0",
+ "@wordpress/stylelint-config": "21.34.0"
}
},
"node_modules/@ampproject/remapping": {
@@ -4857,6 +4858,22 @@
"integrity": "sha512-X4UlrxDTH8oom9qXlcjnydsjAOD2BmB6yFmvS4Z2zdTzqqpRWb+fbqrH412+l+OUXmbzJlSXjlMFYPgYG12IAA==",
"dev": true
},
+ "node_modules/@wordpress/stylelint-config": {
+ "version": "21.34.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/stylelint-config/-/stylelint-config-21.34.0.tgz",
+ "integrity": "sha512-Zou/Y6vdMWnAMzcPNH4yZoKkd8h22DyYO4jyC58ChPEF3O7csvmjpbnDloAr5/MOgCz91hnSkZmiKG0zp8VE6w==",
+ "dev": true,
+ "dependencies": {
+ "stylelint-config-recommended": "^6.0.0",
+ "stylelint-config-recommended-scss": "^5.0.2"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "stylelint": "^14.2"
+ }
+ },
"node_modules/@wordpress/url": {
"version": "3.59.0",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.59.0.tgz",
@@ -23320,6 +23337,16 @@
}
}
},
+ "@wordpress/stylelint-config": {
+ "version": "21.34.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/stylelint-config/-/stylelint-config-21.34.0.tgz",
+ "integrity": "sha512-Zou/Y6vdMWnAMzcPNH4yZoKkd8h22DyYO4jyC58ChPEF3O7csvmjpbnDloAr5/MOgCz91hnSkZmiKG0zp8VE6w==",
+ "dev": true,
+ "requires": {
+ "stylelint-config-recommended": "^6.0.0",
+ "stylelint-config-recommended-scss": "^5.0.2"
+ }
+ },
"@wordpress/url": {
"version": "3.59.0",
"resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.59.0.tgz",
diff --git a/package.json b/package.json
index f207628..47fd18a 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
"homepage": "https://github.com/Automattic/meeting-calendar#readme",
"devDependencies": {
"@wordpress/env": "9.7.0",
- "@wordpress/scripts": "27.9.0"
+ "@wordpress/scripts": "27.9.0",
+ "@wordpress/stylelint-config": "21.34.0"
}
}
diff --git a/src/frontend/style.scss b/src/frontend/style.scss
index 7f8aa31..0c94e07 100644
--- a/src/frontend/style.scss
+++ b/src/frontend/style.scss
@@ -1,3 +1,4 @@
+/* stylelint-disable selector-class-pattern */
@use "sass:color";
.wporg-block-meeting-calendar {
@@ -5,11 +6,62 @@
font-size: var(--wp--preset--font-size--normal, 16px);
}
-.wporg-block-meeting-calendar table {
- table-layout: fixed;
- margin-top: 0; /* There is a global style that is adding a bottom margin to tables */
- margin-bottom: 0; /* There is a global style that is adding a bottom margin to tables */
- width: 100%;
+.wporg-meeting-calendar__filter {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ margin: var(--wp--preset--spacing--20, 20px) 0;
+
+ .components-base-control__field {
+ margin-bottom: unset;
+ }
+}
+
+.wporg-meeting-calendar__filter-dropdown {
+ max-width: none;
+
+ /** Overwriting a default rule on the dropdown container */
+ > div {
+ margin: 0 auto 0 !important;
+ }
+}
+
+.wporg-meeting-calendar__filter-remove.components-button.is-link {
+ text-decoration: none;
+
+ span:not(.dashicons) {
+ text-decoration: underline;
+ }
+}
+
+@media ( max-width: 782px ) {
+
+ .wporg-meeting-calendar__filter {
+ display: block;
+ }
+
+ .wporg-meeting-calendar__filter p {
+ margin: 1em 0 0.5em;
+ }
+
+ .wporg-meeting-calendar__filter-dropdown {
+ max-width: 200px;
+ }
+}
+
+.wporg-meeting-calendar__filter-label {
+ padding-right: 6px;
+ margin-bottom: 0;
+}
+
+.wporg-meeting-calendar__filter-applied {
+ font-size: var(--wp--preset--font-size--normal, 16px);
+ margin: 0 1em;
+}
+
+.wporg-meeting-calendar__filter-label,
+.wporg-meeting-calendar__filter-applied {
+ font-size: var(--wp--preset--font-size--small, 14px);
}
.wporg-meeting-calendar__header {
@@ -24,6 +76,7 @@
}
@media ( min-width: 550px ) {
+
.wporg-meeting-calendar__header {
flex-direction: row;
}
@@ -38,15 +91,39 @@
}
.wporg-meeting-calendar__header h2,
-.wp-site-blocks .wporg-meeting-calendar__header h2:not([class*=-font-size], [style*=font-size]) {
+.wp-site-blocks .wporg-meeting-calendar__header h2:not([class*="-font-size"], [style*="font-size"]) {
margin: 0 0 0 var(--wp--preset--spacing--10, 10px);
font-size: var(--wp--preset--font-size--heading-4, 20px);
}
-.wporg-meeting-calendar__header h2:before {
+.wporg-meeting-calendar__header h2::before {
display: none;
}
+.wporg-meeting-calendar__btn-group {
+ display: flex;
+ gap: 4px;
+
+ .components-button {
+ width: 40px;
+ height: 40px;
+
+ &:disabled {
+ background-color: var(--wp--preset--color--light-grey-2, #f6f6f6);
+ box-shadow: none !important;
+ color: var(--wp--preset--color--charcoal-1, #1e1e1e);
+
+ svg {
+ opacity: 0.5;
+ }
+ }
+
+ &:last-child svg {
+ rotate: 180deg;
+ }
+ }
+}
+
.wporg-meeting-calendar__header .components-button-group {
display: flex;
@@ -90,28 +167,33 @@
width: 100%;
&.is-link {
- border: 1px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));
- background: var(--wp--preset--color--blueberry-4, #EFF2FF);
+ border: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
+ background: var(--wp--preset--color--blueberry-4, #eff2ff);
text-decoration: none;
}
}
+.wporg-meeting-calendar__cell-event-title {
+ display: block;
+ overflow: hidden;
+}
+
.wporg-meeting-calendar__cell-event.is-cancelled,
.wporg-meeting-calendar__cell-event.is-cancelled .wporg-meeting-calendar__cell-event-title,
.wporg-meeting-calendar__dropdown.is-cancelled {
text-decoration: line-through !important;
}
-/* These styles are separate for !important specificity with `wporg-meeting-calendar__team-*` styles below. */
.wporg-meeting-calendar__cell-event:focus {
text-decoration: underline;
- box-shadow: 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));
+ box-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
}
.wporg-meeting-calendar__dropdown .components-menu-group {
padding: 7px;
box-sizing: border-box;
}
+
.wporg-meeting-calendar__dropdown .components-menu-item__button {
white-space: nowrap;
overflow: hidden;
@@ -122,35 +204,6 @@
margin-bottom: 4px;
}
-.wporg-meeting-calendar__cell-event-title {
- display: block;
- overflow: hidden;
-}
-
-.wporg-meeting-calendar__btn-group {
- display: flex;
- gap: 4px;
-
- .components-button {
- width: 40px;
- height: 40px;
-
- &:disabled {
- background-color: var(--wp--preset--color--light-grey-2, #f6f6f6);
- box-shadow: none !important;
- color: var(--wp--preset--color--charcoal-1, #1e1e1e);
-
- svg {
- opacity: 0.5;
- }
- }
-
- &:last-child svg {
- rotate: 180deg;
- }
- }
-}
-
.wporg-meeting-calendar__list-expand {
margin: var(--wp--preset--spacing--20, 20px) 0 0;
text-align: center;
@@ -162,6 +215,13 @@
list-style: none;
}
+.wporg-meeting-calendar__list-title {
+ display: block;
+ font-size: var(--wp--preset--font-size--medium, 18px);
+ font-weight: 600;
+ margin: var(--wp--preset--spacing--30, 30px) 0 var(--wp--preset--spacing--20, 20px);
+}
+
.wporg-meeting-calendar__list li {
list-style: none;
margin: 0;
@@ -171,13 +231,6 @@
}
}
-.wporg-meeting-calendar__list-title {
- display: block;
- font-size: var(--wp--preset--font-size--medium, 18px);
- font-weight: 600;
- margin: var(--wp--preset--spacing--30, 30px) 0 var(--wp--preset--spacing--20, 20px);
-}
-
.wporg-meeting-calendar__list-event {
position: relative;
display: flex;
@@ -197,7 +250,7 @@
border-bottom-right-radius: 2px;
}
- & + .wporg-meeting-calendar__list-event {
+ + .wporg-meeting-calendar__list-event {
border-top: unset;
}
@@ -209,7 +262,7 @@
.wporg-meeting-calendar__list-event-time {
font-size: var(--wp--preset--font-size--small, 14px);
- color: var(--wp--preset--color--charcoal-4, #656A71);
+ color: var(--wp--preset--color--charcoal-4, #656a71);
}
.wporg-meeting-calendar__list-event-team-wrapper {
@@ -224,7 +277,7 @@
margin-bottom: 8px;
border-radius: 2px;
text-decoration: none !important;
- background: var(--wp--preset--color--blueberry-4, #EFF2FF);
+ background: var(--wp--preset--color--blueberry-4, #eff2ff);
color: var(--wp--preset--color--blueberry-1, #3858e9) !important;
line-height: var(--wp--custom--heading--level-1--typography--line-height, 1.3);
}
@@ -267,14 +320,10 @@ h3.wporg-meeting-calendar__list-event-title {
.wporg-meeting-calendar__list-event.is-cancelled .wporg-meeting-calendar__list-event-title a > span:last-child {
padding-left: 8px;
font-size: 16px;
- font-weight: normal;
+ font-weight: 400;
vertical-align: bottom;
}
-.wporg-meeting-calendar__modal-overlay {
- font-size: var(--wp--preset--font-size--small, 14px);
-}
-
.wporg-meeting-calendar__list-event-header {
flex: 1;
}
@@ -289,6 +338,7 @@ h3.wporg-meeting-calendar__list-event-title {
}
@media (min-width: 960px) {
+
.wporg-meeting-calendar__header,
.wporg-meeting-calendar__list {
padding: 0;
@@ -296,6 +346,10 @@ h3.wporg-meeting-calendar__list-event-title {
}
.wporg-block-meeting-calendar table {
+ table-layout: fixed;
+ margin-top: 0; /* There is a global style that is adding a bottom margin to tables */
+ margin-bottom: 0; /* There is a global style that is adding a bottom margin to tables */
+ width: 100%;
border-collapse: collapse;
background: #fff;
}
@@ -337,90 +391,107 @@ h3.wporg-meeting-calendar__list-event-title {
background-color: color.adjust(#cd0000, $lightness: 55%) !important;
color: #cd0000 !important;
}
+
.wporg-meeting-calendar__team-design {
border-color: #eec26a !important;
background-color: color.adjust(#eec26a, $lightness: 30%) !important;
color: color.adjust(#eec26a, $lightness: -40%) !important;
}
+
.wporg-meeting-calendar__team-mobile {
border-color: #fba16c !important;
background-color: color.adjust(#fba16c, $lightness: 30%) !important;
color: #fba16c !important;
}
+
.wporg-meeting-calendar__team-polyglots {
border-color: #c32283 !important;
background-color: color.adjust(#c32283, $lightness: 45%) !important;
color: color.adjust(#c32283, $lightness: -10%) !important;
}
+
.wporg-meeting-calendar__team-support {
border-color: #33b4ce !important;
background-color: color.adjust(#33b4ce, $lightness: 40%) !important;
color: color.adjust(#33b4ce, $lightness: -20%) !important;
}
+
.wporg-meeting-calendar__team-docs,
.wporg-meeting-calendar__team-documentation {
border-color: #3b7236 !important;
background-color: color.adjust(#3b7236, $lightness: 55%) !important;
color: #3b7236 !important;
}
+
.wporg-meeting-calendar__team-themes {
border-color: #4e3288 !important;
background-color: color.adjust(#4e3288, $lightness: 55%) !important;
color: #4e3288 !important;
}
+
.wporg-meeting-calendar__team-plugins {
border-color: #f06723 !important;
background-color: color.adjust(#f06723, $lightness: 55%) !important;
color: #f06723 !important;
}
+
.wporg-meeting-calendar__team-accessibility,
.wporg-meeting-calendar__team-community {
border-color: #11799d !important;
background-color: color.adjust(#11799d, $lightness: 60%) !important;
color: color.adjust(#11799d, $lightness: -10%) !important;
}
+
.wporg-meeting-calendar__team-meta {
border-color: #aeadad !important;
background-color: color.adjust(#aeadad, $lightness: 25%) !important;
color: color.adjust(#aeadad, $lightness: -30%) !important;
}
+
.wporg-meeting-calendar__team-training,
.wporg-meeting-calendar__team-openverse {
border-color: #e9c02d !important;
background-color: color.adjust(#e9c02d, $lightness: 40%) !important;
color: color.adjust(#e9c02d, $lightness: -25%) !important;
}
+
.wporg-meeting-calendar__team-tv {
border-color: #73ad30 !important;
background-color: color.adjust(#73ad30, $lightness: 45%) !important;
color: color.adjust(#73ad30, $lightness: -20%) !important;
}
+
.wporg-meeting-calendar__team-marketing {
border-color: #47bea7 !important;
background-color: color.adjust(#47bea7, $lightness: 55%) !important;
color: #47bea7 !important;
}
+
.wporg-meeting-calendar__team-cli {
border-color: #424242 !important;
background-color: color.adjust(#424242, $lightness: 55%) !important;
color: #424242 !important;
}
+
.wporg-meeting-calendar__team-hosting {
border-color: #5358a6 !important;
background-color: color.adjust(#5358a6, $lightness: 45%) !important;
color: #5358a6 !important;
}
+
.wporg-meeting-calendar__team-tide {
border-color: #1526ff !important;
background-color: color.adjust(#1526ff, $lightness: 40%) !important;
color: #1526ff !important;
}
+
.wporg-meeting-calendar__team-bbpress,
.wporg-meeting-calendar__team-sustainability {
border-color: #2d8e42 !important;
background-color: color.adjust(#2d8e42, $lightness: 55%) !important;
color: color.adjust(#2d8e42, $lightness: -10%) !important;
}
+
.wporg-meeting-calendar__team-buddypress,
.wporg-meeting-calendar__team-test {
border-color: #d84800 !important;
@@ -428,64 +499,6 @@ h3.wporg-meeting-calendar__list-event-title {
color: color.adjust(#d84800, $lightness: -10%) !important;
}
-.wporg-meeting-calendar__filter {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- margin: var(--wp--preset--spacing--20, 20px) 0;
-
- .components-base-control__field {
- margin-bottom: unset;
- }
-}
-
-.wporg-meeting-calendar__filter-dropdown {
- max-width: none;
-}
-
-.wporg-meeting-calendar__filter-remove.components-button.is-link {
- text-decoration: none;
-
- span:not(.dashicons) {
- text-decoration: underline;
- }
-}
-
-@media ( max-width: 782px ) {
- .wporg-meeting-calendar__filter {
- display: block;
- }
-
- .wporg-meeting-calendar__filter p {
- margin: 1em 0 0.5em;
- }
-
- .wporg-meeting-calendar__filter-dropdown {
- max-width: 200px;
- }
-}
-
-.wporg-meeting-calendar__filter-label {
- padding-right: 6px;
- margin-bottom: 0;
-}
-
-.wporg-meeting-calendar__filter-applied {
- font-size: 16px;
- margin: 0 1em;
-}
-
-.wporg-meeting-calendar__filter-label,
-.wporg-meeting-calendar__filter-applied {
- font-size: 14px;
-}
-
-/** Overwriting a default rule on the dropdown container */
-.wporg-meeting-calendar__filter-dropdown > div {
- margin-bottom: 0 !important;
- margin: 0 auto;
-}
-
.wporg-meeting-calendar__modal {
border-radius: unset;
box-shadow: unset;
@@ -509,6 +522,7 @@ h3.wporg-meeting-calendar__list-event-title {
}
.wporg-meeting-calendar__modal-overlay {
+ font-size: var(--wp--preset--font-size--small, 14px);
z-index: 1000001; /* popover z-index + 1 */
}
diff --git a/style.css b/style.css
index e69de29..ff71124 100644
--- a/style.css
+++ b/style.css
@@ -0,0 +1 @@
+/* stylelint-disable no-empty-source */
From 1e2bae1bf9c4390dd29a3208d8b8a32cb8191b4e Mon Sep 17 00:00:00 2001
From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com>
Date: Mon, 14 Oct 2024 17:02:06 +1300
Subject: [PATCH 17/20] Use headings for list view days
---
src/frontend/list/list-item.js | 8 ++++----
src/frontend/style.scss | 4 +++-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/frontend/list/list-item.js b/src/frontend/list/list-item.js
index 099fd85..bf1d75f 100644
--- a/src/frontend/list/list-item.js
+++ b/src/frontend/list/list-item.js
@@ -21,9 +21,9 @@ function ListItem( { date, events } ) {
return (
-
+
{ format( 'l - F j, Y', date ) }
-
+
{ events.map( ( event ) => {
const onTeamClick = ( clickEvent ) => {
@@ -70,7 +70,7 @@ function ListItem( { date, events } ) {