Skip to content

Commit

Permalink
Stats: Fix stats setting role toggles not sticking (#40853)
Browse files Browse the repository at this point in the history
* fix toggles

* changelog

* includes is not necessary

* make the condition check more robust

* use a const array

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12640203232

Upstream-Ref: Automattic/jetpack@be744e8
  • Loading branch information
kangzj authored and matticbot committed Jan 6, 2025
1 parent 87ad3b4 commit fa5a764
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 131 deletions.
32 changes: 16 additions & 16 deletions dist/components/bar-chart/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
.pie-chart-module__pie-chart__R12Vh {
position: relative;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.line-chart-module__line-chart__ITM3d {
position: relative;
}
Expand All @@ -22,22 +38,6 @@
font-weight: 500;
padding-right: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
Expand Down
36 changes: 18 additions & 18 deletions dist/components/grid-control/style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
.pie-chart-module__pie-chart__R12Vh {
position: relative;
}
.bar-chart-module__bar-chart__lmYNi {
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.bar-chart-module__bar-chart-legend__vgKKq {
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.line-chart-module__line-chart__ITM3d {
position: relative;
}
Expand All @@ -28,22 +38,6 @@
font-weight: 500;
padding-right: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.base-tooltip-module__tooltip__OfX6n {
padding: 0.5rem;
background-color: rgba(0, 0, 0, 0.85);
Expand Down Expand Up @@ -88,6 +82,12 @@
.legend-module__legend-item-value__d9x1j {
font-weight: 500;
}
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
Expand Down
42 changes: 21 additions & 21 deletions dist/components/legend/style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
.pie-chart-module__pie-chart__R12Vh {
position: relative;
}
.bar-chart-module__bar-chart__lmYNi {
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.bar-chart-module__bar-chart-legend__vgKKq {
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.line-chart-module__line-chart__ITM3d {
position: relative;
}
Expand All @@ -28,21 +38,10 @@
font-weight: 500;
padding-right: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
}
.base-tooltip-module__tooltip__OfX6n {
padding: 0.5rem;
Expand All @@ -55,10 +54,11 @@
pointer-events: none;
transform: translate(-50%, -100%);
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.legend-module__legend--horizontal__IUN13 {
display: flex;
Expand Down
20 changes: 10 additions & 10 deletions dist/components/line-chart/style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
.pie-chart-module__pie-chart__R12Vh {
position: relative;
}
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
Expand All @@ -23,6 +17,11 @@
margin-top: 0px;
font-size: 14px;
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
}
.base-tooltip-module__tooltip__OfX6n {
padding: 0.5rem;
background-color: rgba(0, 0, 0, 0.85);
Expand All @@ -34,10 +33,11 @@
pointer-events: none;
transform: translate(-50%, -100%);
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.legend-module__legend--horizontal__IUN13 {
display: flex;
Expand Down
36 changes: 18 additions & 18 deletions dist/components/pie-chart/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
.bar-chart-module__bar-chart__lmYNi {
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.bar-chart-module__bar-chart-legend__vgKKq {
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.line-chart-module__line-chart__ITM3d {
position: relative;
}
Expand All @@ -25,27 +35,17 @@
font-weight: 500;
padding-right: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
}
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.legend-module__legend--horizontal__IUN13 {
display: flex;
flex-direction: row;
Expand Down
12 changes: 6 additions & 6 deletions dist/components/pie-semi-circle-chart/style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
.pie-chart-module__pie-chart__R12Vh {
position: relative;
}
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.line-chart-module__line-chart__ITM3d {
position: relative;
}
Expand All @@ -33,6 +27,12 @@
stroke-width: 1px;
shape-rendering: crispEdges;
}
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.legend-module__legend--horizontal__IUN13 {
display: flex;
flex-direction: row;
Expand Down
42 changes: 21 additions & 21 deletions dist/components/tooltip/style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
.pie-chart-module__pie-chart__R12Vh {
position: relative;
}
.bar-chart-module__bar-chart__lmYNi {
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.bar-chart-module__bar-chart-legend__vgKKq {
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
}
.line-chart-module__line-chart__ITM3d {
position: relative;
}
Expand All @@ -28,21 +38,10 @@
font-weight: 500;
padding-right: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 {
position: relative;
text-align: center;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart-legend__c8W1Y {
margin-top: 1rem;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__label__nPqOg {
margin-bottom: 0px;
font-weight: 600;
font-size: 16px;
}
.pie-semi-circle-chart-module__pie-semi-circle-chart__r5jk9 .pie-semi-circle-chart-module__note__LpBZQ {
margin-top: 0px;
font-size: 14px;
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
}
.legend-module__legend--horizontal__IUN13 {
display: flex;
Expand Down Expand Up @@ -77,10 +76,11 @@
.legend-module__legend-item-value__d9x1j {
font-weight: 500;
}
.grid-control-module__grid-control__KOnZN .visx-line {
stroke: #d7d6d6;
stroke-width: 1px;
shape-rendering: crispEdges;
.bar-chart-module__bar-chart__lmYNi {
position: relative;
}
.bar-chart-module__bar-chart-legend__vgKKq {
margin-top: 1rem;
}
.base-tooltip-module__tooltip__OfX6n {
padding: 0.5rem;
Expand Down
Loading

0 comments on commit fa5a764

Please sign in to comment.