diff --git a/css/blau.css b/css/blau.css index e54d1f25f..4418c501e 100644 --- a/css/blau.css +++ b/css/blau.css @@ -110,11 +110,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-blau-white); --mistica-color-controlError: var(--mistica-blau-blauRed); --mistica-color-barTrack: var(--mistica-blau-grey2); + --mistica-color-barTrackInverse: rgba(var(--mistica-blau-raw-grey6), 0.2); --mistica-color-loadingBar: var(--mistica-blau-blauBlueSecondary); --mistica-color-loadingBarBackground: var(--mistica-blau-blauBlueSecondary10); --mistica-color-toggleAndroidInactive: var(--mistica-blau-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-blau-blauBlueSecondary10); --mistica-color-iosControlKnob: var(--mistica-blau-white); + --mistica-color-controlKnobInverse: var(--mistica-blau-blauBlueSecondary); --mistica-color-divider: var(--mistica-blau-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-blau-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-blau-blauBluePrimary); @@ -304,11 +306,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-blau-blauBlueSecondary); --mistica-color-controlError: var(--mistica-blau-blauRed); --mistica-color-barTrack: var(--mistica-blau-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-blau-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-blau-blauBluePrimary); --mistica-color-loadingBarBackground: var(--mistica-blau-darkModeGrey); --mistica-color-toggleAndroidInactive: var(--mistica-blau-grey5); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-blau-blauBlueSecondary30); --mistica-color-iosControlKnob: var(--mistica-blau-grey2); + --mistica-color-controlKnobInverse: var(--mistica-blau-grey2); --mistica-color-divider: rgba(var(--mistica-blau-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-blau-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-blau-darkModeBlack); @@ -446,11 +450,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-blau-blauBlueSecondary); --mistica-color-controlError: var(--mistica-blau-blauRed); --mistica-color-barTrack: var(--mistica-blau-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-blau-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-blau-blauBluePrimary); --mistica-color-loadingBarBackground: var(--mistica-blau-darkModeGrey); --mistica-color-toggleAndroidInactive: var(--mistica-blau-grey5); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-blau-blauBlueSecondary30); --mistica-color-iosControlKnob: var(--mistica-blau-grey2); + --mistica-color-controlKnobInverse: var(--mistica-blau-grey2); --mistica-color-divider: rgba(var(--mistica-blau-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-blau-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-blau-darkModeBlack); @@ -584,11 +590,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-blau-white); --mistica-color-controlError: var(--mistica-blau-blauRed); --mistica-color-barTrack: var(--mistica-blau-grey2); + --mistica-color-barTrackInverse: rgba(var(--mistica-blau-raw-grey6), 0.2); --mistica-color-loadingBar: var(--mistica-blau-blauBlueSecondary); --mistica-color-loadingBarBackground: var(--mistica-blau-blauBlueSecondary10); --mistica-color-toggleAndroidInactive: var(--mistica-blau-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-blau-blauBlueSecondary10); --mistica-color-iosControlKnob: var(--mistica-blau-white); + --mistica-color-controlKnobInverse: var(--mistica-blau-blauBlueSecondary); --mistica-color-divider: var(--mistica-blau-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-blau-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-blau-blauBluePrimary); diff --git a/css/movistar.css b/css/movistar.css index a7a6a6e1f..584c3e612 100644 --- a/css/movistar.css +++ b/css/movistar.css @@ -124,11 +124,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-movistar-white); --mistica-color-controlError: var(--mistica-movistar-pepper55); --mistica-color-barTrack: var(--mistica-movistar-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-movistar-raw-black), 0.14); --mistica-color-loadingBar: var(--mistica-movistar-movistarBlue); --mistica-color-loadingBarBackground: var(--mistica-movistar-grey2); --mistica-color-toggleAndroidInactive: var(--mistica-movistar-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-movistar-movistarBlue20); --mistica-color-iosControlKnob: var(--mistica-movistar-white); + --mistica-color-controlKnobInverse: var(--mistica-movistar-movistarBlue); --mistica-color-divider: var(--mistica-movistar-grey3); --mistica-color-dividerInverse: rgba(var(--mistica-movistar-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-movistar-movistarBlue); @@ -318,11 +320,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-movistar-movistarBlue); --mistica-color-controlError: var(--mistica-movistar-pepper45); --mistica-color-barTrack: var(--mistica-movistar-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-movistar-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-movistar-movistarBlue); --mistica-color-loadingBarBackground: var(--mistica-movistar-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-movistar-darkModeGrey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-movistar-movistarBlue20); --mistica-color-iosControlKnob: var(--mistica-movistar-darkModeGrey2); + --mistica-color-controlKnobInverse: var(--mistica-movistar-darkModeGrey2); --mistica-color-divider: rgba(var(--mistica-movistar-raw-white), 0.1); --mistica-color-dividerInverse: rgba(var(--mistica-movistar-raw-white), 0.1); --mistica-color-navigationBarDivider: var(--mistica-movistar-darkModeBlack); @@ -463,11 +467,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-movistar-movistarBlue); --mistica-color-controlError: var(--mistica-movistar-pepper45); --mistica-color-barTrack: var(--mistica-movistar-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-movistar-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-movistar-movistarBlue); --mistica-color-loadingBarBackground: var(--mistica-movistar-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-movistar-darkModeGrey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-movistar-movistarBlue20); --mistica-color-iosControlKnob: var(--mistica-movistar-darkModeGrey2); + --mistica-color-controlKnobInverse: var(--mistica-movistar-darkModeGrey2); --mistica-color-divider: rgba(var(--mistica-movistar-raw-white), 0.1); --mistica-color-dividerInverse: rgba(var(--mistica-movistar-raw-white), 0.1); --mistica-color-navigationBarDivider: var(--mistica-movistar-darkModeBlack); @@ -601,11 +607,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-movistar-white); --mistica-color-controlError: var(--mistica-movistar-pepper55); --mistica-color-barTrack: var(--mistica-movistar-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-movistar-raw-black), 0.14); --mistica-color-loadingBar: var(--mistica-movistar-movistarBlue); --mistica-color-loadingBarBackground: var(--mistica-movistar-grey2); --mistica-color-toggleAndroidInactive: var(--mistica-movistar-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-movistar-movistarBlue20); --mistica-color-iosControlKnob: var(--mistica-movistar-white); + --mistica-color-controlKnobInverse: var(--mistica-movistar-movistarBlue); --mistica-color-divider: var(--mistica-movistar-grey3); --mistica-color-dividerInverse: rgba(var(--mistica-movistar-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-movistar-movistarBlue); diff --git a/css/o2-new.css b/css/o2-new.css index 560e85760..e920066a3 100644 --- a/css/o2-new.css +++ b/css/o2-new.css @@ -124,11 +124,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-new-white); --mistica-color-controlError: var(--mistica-o2-new-o2Red60); --mistica-color-barTrack: var(--mistica-o2-new-grey30); + --mistica-color-barTrackInverse: rgba(var(--mistica-o2-new-raw-white), 0.3); --mistica-color-loadingBar: var(--mistica-o2-new-beyondBlue); --mistica-color-loadingBarBackground: var(--mistica-o2-new-grey20); --mistica-color-toggleAndroidInactive: var(--mistica-o2-new-grey30); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-new-beyondBlue15); --mistica-color-iosControlKnob: var(--mistica-o2-new-white); + --mistica-color-controlKnobInverse: var(--mistica-o2-new-beyondBlue); --mistica-color-divider: var(--mistica-o2-new-grey30); --mistica-color-dividerInverse: rgba(var(--mistica-o2-new-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-o2-new-darkBlue); @@ -318,11 +320,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-new-darkModeBeyondBlue); --mistica-color-controlError: var(--mistica-o2-new-o2Red45); --mistica-color-barTrack: var(--mistica-o2-new-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-o2-new-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-o2-new-darkModeBeyondBlue); --mistica-color-loadingBarBackground: var(--mistica-o2-new-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-o2-new-grey20); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-new-beyondBlue15); --mistica-color-iosControlKnob: var(--mistica-o2-new-grey30); + --mistica-color-controlKnobInverse: var(--mistica-o2-new-grey30); --mistica-color-badge: var(--mistica-o2-new-o2Red65); --mistica-color-feedbackErrorBackground: var(--mistica-o2-new-o2Red60); --mistica-color-feedbackInfoBackground: var(--mistica-o2-new-darkModeGrey6); @@ -457,11 +461,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-new-darkModeBeyondBlue); --mistica-color-controlError: var(--mistica-o2-new-o2Red45); --mistica-color-barTrack: var(--mistica-o2-new-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-o2-new-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-o2-new-darkModeBeyondBlue); --mistica-color-loadingBarBackground: var(--mistica-o2-new-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-o2-new-grey20); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-new-beyondBlue15); --mistica-color-iosControlKnob: var(--mistica-o2-new-grey30); + --mistica-color-controlKnobInverse: var(--mistica-o2-new-grey30); --mistica-color-badge: var(--mistica-o2-new-o2Red65); --mistica-color-feedbackErrorBackground: var(--mistica-o2-new-o2Red60); --mistica-color-feedbackInfoBackground: var(--mistica-o2-new-darkModeGrey6); @@ -605,11 +611,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-new-white); --mistica-color-controlError: var(--mistica-o2-new-o2Red60); --mistica-color-barTrack: var(--mistica-o2-new-grey30); + --mistica-color-barTrackInverse: rgba(var(--mistica-o2-new-raw-white), 0.3); --mistica-color-loadingBar: var(--mistica-o2-new-beyondBlue); --mistica-color-loadingBarBackground: var(--mistica-o2-new-grey20); --mistica-color-toggleAndroidInactive: var(--mistica-o2-new-grey30); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-new-beyondBlue15); --mistica-color-iosControlKnob: var(--mistica-o2-new-white); + --mistica-color-controlKnobInverse: var(--mistica-o2-new-beyondBlue); --mistica-color-badge: var(--mistica-o2-new-o2Red65); --mistica-color-feedbackErrorBackground: var(--mistica-o2-new-o2Red60); --mistica-color-feedbackInfoBackground: var(--mistica-o2-new-black); diff --git a/css/o2.css b/css/o2.css index 466d930df..9ef7986df 100644 --- a/css/o2.css +++ b/css/o2.css @@ -110,11 +110,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-white); --mistica-color-controlError: var(--mistica-o2-pepper); --mistica-color-barTrack: var(--mistica-o2-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-o2-raw-white), 0.3); --mistica-color-loadingBar: var(--mistica-o2-o2BluePrimary); --mistica-color-loadingBarBackground: var(--mistica-o2-grey1); --mistica-color-toggleAndroidInactive: var(--mistica-o2-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-o2BluePrimary15); --mistica-color-iosControlKnob: var(--mistica-o2-white); + --mistica-color-controlKnobInverse: var(--mistica-o2-o2BluePrimary); --mistica-color-divider: var(--mistica-o2-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-o2-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-o2-o2BluePrimary); @@ -304,11 +306,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-o2BluePrimary30); --mistica-color-controlError: var(--mistica-o2-pepper); --mistica-color-barTrack: var(--mistica-o2-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-o2-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-o2-darkModeO2BluePrimary); --mistica-color-loadingBarBackground: var(--mistica-o2-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-o2-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-o2BlueLight30); --mistica-color-iosControlKnob: var(--mistica-o2-grey2); + --mistica-color-controlKnobInverse: var(--mistica-o2-grey2); --mistica-color-badge: var(--mistica-o2-pepper60); --mistica-color-feedbackErrorBackground: var(--mistica-o2-pepper); --mistica-color-feedbackInfoBackground: var(--mistica-o2-darkModeGrey6); @@ -443,11 +447,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-o2BluePrimary30); --mistica-color-controlError: var(--mistica-o2-pepper); --mistica-color-barTrack: var(--mistica-o2-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-o2-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-o2-darkModeO2BluePrimary); --mistica-color-loadingBarBackground: var(--mistica-o2-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-o2-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-o2BlueLight30); --mistica-color-iosControlKnob: var(--mistica-o2-grey2); + --mistica-color-controlKnobInverse: var(--mistica-o2-grey2); --mistica-color-badge: var(--mistica-o2-pepper60); --mistica-color-feedbackErrorBackground: var(--mistica-o2-pepper); --mistica-color-feedbackInfoBackground: var(--mistica-o2-darkModeGrey6); @@ -581,11 +587,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-o2-white); --mistica-color-controlError: var(--mistica-o2-pepper); --mistica-color-barTrack: var(--mistica-o2-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-o2-raw-white), 0.3); --mistica-color-loadingBar: var(--mistica-o2-o2BluePrimary); --mistica-color-loadingBarBackground: var(--mistica-o2-grey1); --mistica-color-toggleAndroidInactive: var(--mistica-o2-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-o2-o2BluePrimary15); --mistica-color-iosControlKnob: var(--mistica-o2-white); + --mistica-color-controlKnobInverse: var(--mistica-o2-o2BluePrimary); --mistica-color-badge: var(--mistica-o2-pepper60); --mistica-color-feedbackErrorBackground: var(--mistica-o2-pepper); --mistica-color-feedbackInfoBackground: var(--mistica-o2-grey6); diff --git a/css/telefonica.css b/css/telefonica.css index 108c7c809..9547b353e 100644 --- a/css/telefonica.css +++ b/css/telefonica.css @@ -110,12 +110,14 @@ --mistica-color-controlInverse: var(--mistica-telefonica-grey1); --mistica-color-controlActivatedInverse: var(--mistica-telefonica-white); --mistica-color-controlError: var(--mistica-telefonica-coral); - --mistica-color-barTrack: var(--mistica-telefonica-grey3); + --mistica-color-barTrack: var(--mistica-telefonica-grey2); + --mistica-color-barTrackInverse: rgba(var(--mistica-telefonica-raw-white), 0.3); --mistica-color-loadingBar: var(--mistica-telefonica-telefonicaBlue30); --mistica-color-loadingBarBackground: var(--mistica-telefonica-telefonicaBlue70); --mistica-color-toggleAndroidInactive: var(--mistica-telefonica-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-telefonica-grey2); --mistica-color-iosControlKnob: var(--mistica-telefonica-white); + --mistica-color-controlKnobInverse: var(--mistica-telefonica-telefonicaBlue); --mistica-color-divider: var(--mistica-telefonica-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-telefonica-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-telefonica-telefonicaBlue); @@ -305,11 +307,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-telefonica-telefonicaBlue); --mistica-color-controlError: var(--mistica-telefonica-coral); --mistica-color-barTrack: var(--mistica-telefonica-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-telefonica-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-telefonica-telefonicaBlue); --mistica-color-loadingBarBackground: var(--mistica-telefonica-grey6); --mistica-color-toggleAndroidInactive: var(--mistica-telefonica-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-telefonica-telefonicaBlue20); --mistica-color-iosControlKnob: var(--mistica-telefonica-grey2); + --mistica-color-controlKnobInverse: var(--mistica-telefonica-grey2); --mistica-color-divider: rgba(var(--mistica-telefonica-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-telefonica-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-telefonica-darkModeBlack); @@ -453,11 +457,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-telefonica-telefonicaBlue); --mistica-color-controlError: var(--mistica-telefonica-coral); --mistica-color-barTrack: var(--mistica-telefonica-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-telefonica-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-telefonica-telefonicaBlue); --mistica-color-loadingBarBackground: var(--mistica-telefonica-grey6); --mistica-color-toggleAndroidInactive: var(--mistica-telefonica-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-telefonica-telefonicaBlue20); --mistica-color-iosControlKnob: var(--mistica-telefonica-grey2); + --mistica-color-controlKnobInverse: var(--mistica-telefonica-grey2); --mistica-color-divider: rgba(var(--mistica-telefonica-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-telefonica-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-telefonica-darkModeBlack); @@ -596,12 +602,14 @@ --mistica-color-controlInverse: var(--mistica-telefonica-grey1); --mistica-color-controlActivatedInverse: var(--mistica-telefonica-white); --mistica-color-controlError: var(--mistica-telefonica-coral); - --mistica-color-barTrack: var(--mistica-telefonica-grey3); + --mistica-color-barTrack: var(--mistica-telefonica-grey2); + --mistica-color-barTrackInverse: rgba(var(--mistica-telefonica-raw-white), 0.3); --mistica-color-loadingBar: var(--mistica-telefonica-telefonicaBlue30); --mistica-color-loadingBarBackground: var(--mistica-telefonica-telefonicaBlue70); --mistica-color-toggleAndroidInactive: var(--mistica-telefonica-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-telefonica-grey2); --mistica-color-iosControlKnob: var(--mistica-telefonica-white); + --mistica-color-controlKnobInverse: var(--mistica-telefonica-telefonicaBlue); --mistica-color-divider: var(--mistica-telefonica-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-telefonica-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-telefonica-telefonicaBlue); diff --git a/css/tu.css b/css/tu.css index 69e45ec48..951f8e45d 100644 --- a/css/tu.css +++ b/css/tu.css @@ -113,11 +113,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-tu-white); --mistica-color-controlError: var(--mistica-tu-red); --mistica-color-barTrack: var(--mistica-tu-grey2); + --mistica-color-barTrackInverse: rgba(var(--mistica-tu-raw-white), 0.36); --mistica-color-loadingBar: var(--mistica-tu-green40); --mistica-color-loadingBarBackground: var(--mistica-tu-green); --mistica-color-toggleAndroidInactive: var(--mistica-tu-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-tu-primary15); --mistica-color-iosControlKnob: var(--mistica-tu-white); + --mistica-color-controlKnobInverse: var(--mistica-tu-primary); --mistica-color-divider: var(--mistica-tu-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-tu-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-tu-primary); @@ -307,11 +309,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-tu-blue30); --mistica-color-controlError: var(--mistica-tu-red); --mistica-color-barTrack: var(--mistica-tu-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-tu-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-tu-green40); --mistica-color-loadingBarBackground: var(--mistica-tu-green); --mistica-color-toggleAndroidInactive: var(--mistica-tu-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-tu-blue20); --mistica-color-iosControlKnob: var(--mistica-tu-grey2); + --mistica-color-controlKnobInverse: var(--mistica-tu-grey2); --mistica-color-divider: rgba(var(--mistica-tu-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-tu-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-tu-darkModeBlack); @@ -446,11 +450,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-tu-blue30); --mistica-color-controlError: var(--mistica-tu-red); --mistica-color-barTrack: var(--mistica-tu-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-tu-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-tu-green40); --mistica-color-loadingBarBackground: var(--mistica-tu-green); --mistica-color-toggleAndroidInactive: var(--mistica-tu-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-tu-blue20); --mistica-color-iosControlKnob: var(--mistica-tu-grey2); + --mistica-color-controlKnobInverse: var(--mistica-tu-grey2); --mistica-color-divider: rgba(var(--mistica-tu-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-tu-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-tu-darkModeBlack); @@ -584,11 +590,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-tu-white); --mistica-color-controlError: var(--mistica-tu-red); --mistica-color-barTrack: var(--mistica-tu-grey2); + --mistica-color-barTrackInverse: rgba(var(--mistica-tu-raw-white), 0.36); --mistica-color-loadingBar: var(--mistica-tu-green40); --mistica-color-loadingBarBackground: var(--mistica-tu-green); --mistica-color-toggleAndroidInactive: var(--mistica-tu-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-tu-primary15); --mistica-color-iosControlKnob: var(--mistica-tu-white); + --mistica-color-controlKnobInverse: var(--mistica-tu-primary); --mistica-color-divider: var(--mistica-tu-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-tu-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-tu-primary); diff --git a/css/vivo-new.css b/css/vivo-new.css index f234313fa..2d7c67e48 100644 --- a/css/vivo-new.css +++ b/css/vivo-new.css @@ -105,11 +105,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-new-white); --mistica-color-controlError: var(--mistica-vivo-new-pepper); --mistica-color-barTrack: var(--mistica-vivo-new-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-vivo-new-raw-white), 0.5); --mistica-color-loadingBar: var(--mistica-vivo-new-vivoPurple); --mistica-color-loadingBarBackground: var(--mistica-vivo-new-vivoPurpleLight10); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-new-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-new-vivoPurpleLight20); --mistica-color-iosControlKnob: var(--mistica-vivo-new-white); + --mistica-color-controlKnobInverse: var(--mistica-vivo-new-vivoPurple); --mistica-color-divider: var(--mistica-vivo-new-grey3); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-new-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-vivo-new-vivoPurple); @@ -299,11 +301,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-new-vivoPurpleLight80); --mistica-color-controlError: var(--mistica-vivo-new-pepper); --mistica-color-barTrack: var(--mistica-vivo-new-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-vivo-new-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-vivo-new-vivoPurpleLight80); --mistica-color-loadingBarBackground: var(--mistica-vivo-new-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-new-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-new-vivoPurpleLight50); --mistica-color-iosControlKnob: var(--mistica-vivo-new-grey2); + --mistica-color-controlKnobInverse: var(--mistica-vivo-new-grey2); --mistica-color-divider: rgba(var(--mistica-vivo-new-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-new-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-vivo-new-darkModeBlack); @@ -444,11 +448,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-new-vivoPurpleLight80); --mistica-color-controlError: var(--mistica-vivo-new-pepper); --mistica-color-barTrack: var(--mistica-vivo-new-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-vivo-new-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-vivo-new-vivoPurpleLight80); --mistica-color-loadingBarBackground: var(--mistica-vivo-new-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-new-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-new-vivoPurpleLight50); --mistica-color-iosControlKnob: var(--mistica-vivo-new-grey2); + --mistica-color-controlKnobInverse: var(--mistica-vivo-new-grey2); --mistica-color-divider: rgba(var(--mistica-vivo-new-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-new-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-vivo-new-darkModeBlack); @@ -585,11 +591,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-new-white); --mistica-color-controlError: var(--mistica-vivo-new-pepper); --mistica-color-barTrack: var(--mistica-vivo-new-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-vivo-new-raw-white), 0.5); --mistica-color-loadingBar: var(--mistica-vivo-new-vivoPurple); --mistica-color-loadingBarBackground: var(--mistica-vivo-new-vivoPurpleLight10); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-new-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-new-vivoPurpleLight20); --mistica-color-iosControlKnob: var(--mistica-vivo-new-white); + --mistica-color-controlKnobInverse: var(--mistica-vivo-new-vivoPurple); --mistica-color-divider: var(--mistica-vivo-new-grey3); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-new-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-vivo-new-vivoPurple); diff --git a/css/vivo.css b/css/vivo.css index 68d780a61..db84a0d36 100644 --- a/css/vivo.css +++ b/css/vivo.css @@ -106,11 +106,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-white); --mistica-color-controlError: var(--mistica-vivo-pepper); --mistica-color-barTrack: var(--mistica-vivo-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-vivo-raw-white), 0.5); --mistica-color-loadingBar: var(--mistica-vivo-pink); --mistica-color-loadingBarBackground: var(--mistica-vivo-pepperLight30); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-vivoPurpleLight20); --mistica-color-iosControlKnob: var(--mistica-vivo-white); + --mistica-color-controlKnobInverse: var(--mistica-vivo-vivoPurple); --mistica-color-divider: var(--mistica-vivo-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-vivo-vivoPurple); @@ -300,11 +302,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-vivoPurpleLight80); --mistica-color-controlError: var(--mistica-vivo-pepper); --mistica-color-barTrack: var(--mistica-vivo-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-vivo-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-vivo-vivoPurpleLight80); --mistica-color-loadingBarBackground: var(--mistica-vivo-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-vivoPurpleLight50); --mistica-color-iosControlKnob: var(--mistica-vivo-grey2); + --mistica-color-controlKnobInverse: var(--mistica-vivo-grey2); --mistica-color-divider: rgba(var(--mistica-vivo-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-vivo-darkModeBlack); @@ -439,11 +443,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-vivoPurpleLight80); --mistica-color-controlError: var(--mistica-vivo-pepper); --mistica-color-barTrack: var(--mistica-vivo-darkModeGrey6); + --mistica-color-barTrackInverse: var(--mistica-vivo-darkModeGrey6); --mistica-color-loadingBar: var(--mistica-vivo-vivoPurpleLight80); --mistica-color-loadingBarBackground: var(--mistica-vivo-darkModeGrey6); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-grey4); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-vivoPurpleLight50); --mistica-color-iosControlKnob: var(--mistica-vivo-grey2); + --mistica-color-controlKnobInverse: var(--mistica-vivo-grey2); --mistica-color-divider: rgba(var(--mistica-vivo-raw-white), 0.05); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-raw-white), 0.05); --mistica-color-navigationBarDivider: var(--mistica-vivo-darkModeBlack); @@ -577,11 +583,13 @@ --mistica-color-controlActivatedInverse: var(--mistica-vivo-white); --mistica-color-controlError: var(--mistica-vivo-pepper); --mistica-color-barTrack: var(--mistica-vivo-grey3); + --mistica-color-barTrackInverse: rgba(var(--mistica-vivo-raw-white), 0.5); --mistica-color-loadingBar: var(--mistica-vivo-pink); --mistica-color-loadingBarBackground: var(--mistica-vivo-pepperLight30); --mistica-color-toggleAndroidInactive: var(--mistica-vivo-grey2); --mistica-color-toggleAndroidBackgroundActive: var(--mistica-vivo-vivoPurpleLight20); --mistica-color-iosControlKnob: var(--mistica-vivo-white); + --mistica-color-controlKnobInverse: var(--mistica-vivo-vivoPurple); --mistica-color-divider: var(--mistica-vivo-grey2); --mistica-color-dividerInverse: rgba(var(--mistica-vivo-raw-white), 0.2); --mistica-color-navigationBarDivider: var(--mistica-vivo-vivoPurple); diff --git a/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-android-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-android-1-snap.png new file mode 100644 index 000000000..ab1704e85 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-android-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-android-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-android-2-snap.png new file mode 100644 index 000000000..8fd3d0f1b Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-android-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-ios-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-ios-1-snap.png new file mode 100644 index 000000000..8a1a1d8fb Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-ios-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-ios-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-ios-2-snap.png new file mode 100644 index 000000000..32d12925d Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/checkbox-screenshot-test-tsx-checkbox-inverse-mobile-ios-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-2-snap.png index a599ff502..88775d966 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-3-snap.png index a9e9bb581..0f83c2e42 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-blau-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-2-snap.png index 445cc5cd2..b7122e642 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-3-snap.png index 6828b2542..f57528c0a 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-movistar-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-2-snap.png index 07152141e..2494a594b 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-3-snap.png index 1887f7d15..80be1de25 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-2-snap.png index 47e13eb5d..cf63ba861 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-3-snap.png index 3cc29ae57..3d96d2e61 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-3-snap.png index 4b1577c7c..fc100da15 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-alternative-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-alternative-3-snap.png index f7e6c5874..bede1f660 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-alternative-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-alternative-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-2-snap.png index a50217248..6ed059316 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-3-snap.png index 6fdfcea7f..0a4d326dc 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-telefonica-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-2-snap.png index 6bb8d39fb..967cd8ed1 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-3-snap.png index 1e9bde5f4..c4a0b1a1f 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-tu-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-2-snap.png index b12b5dc99..2aa1dc9e0 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-3-snap.png b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-3-snap.png index 07e70a07e..5adcb18c8 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-3-snap.png and b/src/__screenshot_tests__/__image_snapshots__/private-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-3-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-inverse-and-color-default-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-inverse-and-color-default-1-snap.png new file mode 100644 index 000000000..88863d406 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-inverse-and-color-default-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-inverse-and-color-error-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-inverse-and-color-error-1-snap.png new file mode 100644 index 000000000..fefb55cf9 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-inverse-and-color-error-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-stepped-inverse-and-color-default-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-stepped-inverse-and-color-default-1-snap.png new file mode 100644 index 000000000..6e62190c5 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-stepped-inverse-and-color-default-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-stepped-inverse-and-color-error-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-stepped-inverse-and-color-error-1-snap.png new file mode 100644 index 000000000..e79a53ab0 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-stepped-inverse-and-color-error-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/radio-button-screenshot-test-tsx-radio-button-inverse-mobile-android-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/radio-button-screenshot-test-tsx-radio-button-inverse-mobile-android-1-snap.png new file mode 100644 index 000000000..120359406 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/radio-button-screenshot-test-tsx-radio-button-inverse-mobile-android-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/radio-button-screenshot-test-tsx-radio-button-inverse-mobile-ios-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/radio-button-screenshot-test-tsx-radio-button-inverse-mobile-ios-1-snap.png new file mode 100644 index 000000000..b8fb981c6 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/radio-button-screenshot-test-tsx-radio-button-inverse-mobile-ios-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-desktop-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-desktop-1-snap.png index 50615e129..c389c8d6a 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-desktop-1-snap.png and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-desktop-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-disabled-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-disabled-1-snap.png index 5de310639..1deb6c5b1 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-disabled-1-snap.png and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-disabled-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-desktop-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-desktop-1-snap.png new file mode 100644 index 000000000..46e13e641 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-desktop-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-mobile-android-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-mobile-android-1-snap.png new file mode 100644 index 000000000..e59d6332e Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-mobile-android-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-mobile-ios-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-mobile-ios-1-snap.png new file mode 100644 index 000000000..eac629ed6 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-in-mobile-ios-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-with-half-of-the-bar-covered-s-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-with-half-of-the-bar-covered-s-1-snap.png new file mode 100644 index 000000000..e59d6332e Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-inverse-with-half-of-the-bar-covered-s-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-android-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-android-1-snap.png index c84425e18..353e58034 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-android-1-snap.png and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-android-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-ios-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-ios-1-snap.png index 64a418ce4..f936945c3 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-ios-1-snap.png and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-mobile-ios-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-1-snap.png index 4b6dac6f3..8091d626f 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-1-snap.png and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-2-snap.png index 9cbdc0e84..9efebad89 100644 Binary files a/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-2-snap.png and b/src/__screenshot_tests__/__image_snapshots__/slider-screenshot-test-tsx-slider-tooltip-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-android-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-android-1-snap.png new file mode 100644 index 000000000..b79744029 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-android-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-android-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-android-2-snap.png new file mode 100644 index 000000000..ee201794c Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-android-2-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-ios-1-snap.png b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-ios-1-snap.png new file mode 100644 index 000000000..2223816e6 Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-ios-1-snap.png differ diff --git a/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-ios-2-snap.png b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-ios-2-snap.png new file mode 100644 index 000000000..df0e028ff Binary files /dev/null and b/src/__screenshot_tests__/__image_snapshots__/switch-screenshot-test-tsx-switch-inverse-mobile-ios-2-snap.png differ diff --git a/src/__screenshot_tests__/checkbox-screenshot-test.tsx b/src/__screenshot_tests__/checkbox-screenshot-test.tsx index 8b1ad4ed7..a690dffce 100644 --- a/src/__screenshot_tests__/checkbox-screenshot-test.tsx +++ b/src/__screenshot_tests__/checkbox-screenshot-test.tsx @@ -20,6 +20,25 @@ test.each(DEVICES)('Checkbox (%s)', async (device) => { expect(imageChecked).toMatchImageSnapshot(); }); +test.each(DEVICES)('Checkbox - inverse (%s)', async (device) => { + await openStoryPage({ + id: 'components-checkbox--controlled', + device, + args: {inverse: true}, + }); + + const wrapper = await screen.findByTestId('checkbox-wrapper'); + const checkbox = await screen.findByRole('checkbox'); + + const image = await wrapper.screenshot(); + expect(image).toMatchImageSnapshot(); + + await checkbox.click(); + + const imageChecked = await wrapper.screenshot(); + expect(imageChecked).toMatchImageSnapshot(); +}); + test('Checkbox - uncontrolled', async () => { await openStoryPage({ id: 'components-checkbox--uncontrolled', diff --git a/src/__screenshot_tests__/progress-bar-screenshot-test.tsx b/src/__screenshot_tests__/progress-bar-screenshot-test.tsx index c9ee68c64..0aaff1bfc 100644 --- a/src/__screenshot_tests__/progress-bar-screenshot-test.tsx +++ b/src/__screenshot_tests__/progress-bar-screenshot-test.tsx @@ -12,6 +12,16 @@ test.each(COLORS)('ProgressBar - color={%s}', async (color) => { expect(image).toMatchImageSnapshot(); }); +test.each(COLORS)('ProgressBar - inverse and color={%s}', async (color) => { + await openStoryPage({id: 'components-progress-bars--progress-bar-story', args: {color, inverse: true}}); + + const stepper = await screen.findByTestId('progress-bar'); + + const image = await stepper.screenshot(); + + expect(image).toMatchImageSnapshot(); +}); + test.each(COLORS)('ProgressBarStepped - color={%s}', async (color) => { await openStoryPage({id: 'components-progress-bars--progress-bar-stepped-story', args: {color}}); @@ -21,3 +31,16 @@ test.each(COLORS)('ProgressBarStepped - color={%s}', async (color) => { expect(image).toMatchImageSnapshot(); }); + +test.each(COLORS)('ProgressBarStepped - inverse and color={%s}', async (color) => { + await openStoryPage({ + id: 'components-progress-bars--progress-bar-stepped-story', + args: {color, inverse: true}, + }); + + const stepper = await screen.findByTestId('progress-bar-stepped'); + + const image = await stepper.screenshot(); + + expect(image).toMatchImageSnapshot(); +}); diff --git a/src/__screenshot_tests__/radio-button-screenshot-test.tsx b/src/__screenshot_tests__/radio-button-screenshot-test.tsx index a847fe851..7883dbc2f 100644 --- a/src/__screenshot_tests__/radio-button-screenshot-test.tsx +++ b/src/__screenshot_tests__/radio-button-screenshot-test.tsx @@ -13,6 +13,18 @@ test.each(DEVICES)('RadioButton (%s)', async (device) => { expect(image).toMatchImageSnapshot(); }); +test.each(DEVICES)('RadioButton - inverse (%s)', async (device) => { + await openStoryPage({ + id: 'components-radio-button--controlled', + device, + args: {inverse: true}, + }); + + const wrapper = await screen.findByTestId('radio-group-wrapper'); + const image = await wrapper.screenshot(); + expect(image).toMatchImageSnapshot(); +}); + test('RadioButton - uncontrolled', async () => { await openStoryPage({ id: 'components-radio-button--uncontrolled', diff --git a/src/__screenshot_tests__/slider-screenshot-test.tsx b/src/__screenshot_tests__/slider-screenshot-test.tsx index 35ae59e45..dfaaf3bab 100644 --- a/src/__screenshot_tests__/slider-screenshot-test.tsx +++ b/src/__screenshot_tests__/slider-screenshot-test.tsx @@ -14,6 +14,19 @@ test.each(DEVICES)('Slider - %s', async (device) => { expect(image).toMatchImageSnapshot(); }); +test.each(DEVICES)('Slider - inverse in %s', async (device) => { + await openStoryPage({ + id: 'components-slider--uncontrolled', + device, + args: {inverse: true}, + }); + + const slider = await screen.findByTestId('slider'); + + const image = await slider.screenshot(); + expect(image).toMatchImageSnapshot(); +}); + test('Slider - disabled', async () => { await openStoryPage({ id: 'components-slider--uncontrolled', diff --git a/src/__screenshot_tests__/switch-screenshot-test.tsx b/src/__screenshot_tests__/switch-screenshot-test.tsx index 679bbb83a..d8a41a415 100644 --- a/src/__screenshot_tests__/switch-screenshot-test.tsx +++ b/src/__screenshot_tests__/switch-screenshot-test.tsx @@ -20,6 +20,25 @@ test.each(DEVICES)('Switch (%s)', async (device) => { expect(imageChecked).toMatchImageSnapshot(); }); +test.each(DEVICES)('Switch - inverse (%s)', async (device) => { + await openStoryPage({ + id: 'components-switch--controlled', + device, + args: {inverse: true}, + }); + + const wrapper = await screen.findByTestId('switch-wrapper'); + const element = await screen.findByRole('switch'); + + const image = await wrapper.screenshot(); + expect(image).toMatchImageSnapshot(); + + await element.click(); + + const imageChecked = await wrapper.screenshot(); + expect(imageChecked).toMatchImageSnapshot(); +}); + test('Switch - uncontrolled', async () => { await openStoryPage({ id: 'components-switch--uncontrolled', diff --git a/src/__stories__/checkbox-story.tsx b/src/__stories__/checkbox-story.tsx index 2328ff0ff..6577ea8d3 100644 --- a/src/__stories__/checkbox-story.tsx +++ b/src/__stories__/checkbox-story.tsx @@ -1,68 +1,89 @@ import * as React from 'react'; -import {Checkbox, Text3, Inline, IconCheckRegular, IconCloseRegular} from '..'; +import {Checkbox, Text3, Inline, IconCheckRegular, IconCloseRegular, ResponsiveLayout, Box} from '..'; export default { title: 'Components/Checkbox', + parameters: {fullScreen: true}, }; type Args = { disabled: boolean; + inverse: boolean; }; -export const Controlled: StoryComponent = ({disabled}) => { +export const Controlled: StoryComponent = ({disabled, inverse}) => { const [checked, onChange] = React.useState(false); return ( -
- - checkbox content - -
+ + +
+ + checkbox content + +
+
+
); }; Controlled.storyName = 'controlled'; Controlled.args = { disabled: false, + inverse: false, }; -export const Uncontrolled: StoryComponent = ({disabled}) => { +export const Uncontrolled: StoryComponent = ({disabled, inverse}) => { return ( -
- - checkbox content - -
+ + +
+ + checkbox content + +
+
+
); }; Uncontrolled.storyName = 'uncontrolled'; Uncontrolled.args = { disabled: false, + inverse: false, }; -export const CustomRender: StoryComponent = ({disabled}) => { +export const CustomRender: StoryComponent = ({disabled, inverse}) => { return ( -
- ( -
- - {checked ? : } - {/* set the text id to match the checkbox name, so this text can be linked as label for accessibility */} - - checkbox content - - -
- )} - /> -
+ + +
+ ( +
+ + {checked ? ( + + ) : ( + + )} + {/* set the text id to match the checkbox name, so this text can be linked as label for accessibility */} + + checkbox content + + +
+ )} + /> +
+
+
); }; CustomRender.storyName = 'custom render'; CustomRender.args = { disabled: false, + inverse: false, }; diff --git a/src/__stories__/progress-bar-story.tsx b/src/__stories__/progress-bar-story.tsx index 225b4e8ed..96f695f15 100644 --- a/src/__stories__/progress-bar-story.tsx +++ b/src/__stories__/progress-bar-story.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import {ProgressBar, ProgressBarStepped} from '..'; +import {Box, ProgressBar, ProgressBarStepped, ResponsiveLayout} from '..'; import {vars} from '../skins/skin-contract.css'; export default { @@ -10,21 +10,32 @@ export default { control: {type: 'select'}, }, }, + parameters: {fullScreen: true}, }; type ProgressBarStoryArgs = { reverse: boolean; progressPercent: number; color: 'default' | 'error'; + inverse: boolean; }; -export const ProgressBarStory: StoryComponent = ({reverse, progressPercent, color}) => ( - +export const ProgressBarStory: StoryComponent = ({ + reverse, + progressPercent, + color, + inverse, +}) => ( + + + + + ); ProgressBarStory.storyName = 'ProgressBar'; @@ -32,25 +43,32 @@ ProgressBarStory.args = { reverse: false, progressPercent: 30, color: 'default', + inverse: false, }; type ProgressBarSteppedStoryArgs = { steps: number; currentStep: number; color: 'default' | 'error'; + inverse: boolean; }; export const ProgressBarSteppedStory: StoryComponent = ({ steps, currentStep, color, + inverse, }) => ( - + + + + + ); ProgressBarSteppedStory.storyName = 'ProgressBarStepped'; @@ -58,6 +76,7 @@ ProgressBarSteppedStory.args = { steps: 4, currentStep: 3, color: 'default', + inverse: false, }; ProgressBarSteppedStory.argTypes = { steps: { diff --git a/src/__stories__/radio-button-story.tsx b/src/__stories__/radio-button-story.tsx index 80a71102d..bbce3dd2e 100644 --- a/src/__stories__/radio-button-story.tsx +++ b/src/__stories__/radio-button-story.tsx @@ -1,106 +1,139 @@ import * as React from 'react'; -import {Stack, RadioGroup, RadioButton, Inline, Text3, IconHandRightRegular} from '..'; +import {Stack, RadioGroup, RadioButton, Inline, Text3, IconHandRightRegular, ResponsiveLayout, Box} from '..'; export default { title: 'Components/Radio Button', + parameters: {fullScreen: true}, }; type Args = { disabled: boolean; + inverse: boolean; }; -export const Controlled: StoryComponent = ({disabled}) => { +export const Controlled: StoryComponent = ({disabled, inverse}) => { const [value, setValue] = React.useState('first'); return ( -
- - - - First option - - - Second option - - - -
+ + +
+ + + + First option + + + Second option + + + +
+
+
); }; Controlled.storyName = 'controlled'; Controlled.args = { disabled: false, + inverse: false, }; -export const Uncontrolled: StoryComponent = ({disabled}) => { +export const Uncontrolled: StoryComponent = ({disabled, inverse}) => { const [value, setValue] = React.useState('first'); return ( -
- - - - First option - - - Second option - - - -
+ + +
+ + + + First option + + + Second option + + + +
+
+
); }; Uncontrolled.storyName = 'uncontrolled'; Uncontrolled.args = { disabled: false, + inverse: false, }; -export const CustomRender: StoryComponent = ({disabled}) => { +export const CustomRender: StoryComponent = ({disabled, inverse}) => { const [value, setValue] = React.useState('first'); return ( -
- - - ( -
- -
- -
+ + +
+ + + ( +
+ +
+ +
- {/* set the text id to match the radio button name, so this text can be linked as label for accessibility */} - - First option - -
-
- )} - /> - ( -
- -
- + {/* set the text id to match the radio button name, so this text can be linked as label for accessibility */} + + First option + + +
+ )} + /> + ( +
+ +
+ +
+ {/* set the text id to match the radio button name, so this text can be linked as label for accessibility */} + + Second option + +
- {/* set the text id to match the radio button name, so this text can be linked as label for accessibility */} - - Second option - -
-
- )} - /> -
-
-
+ )} + /> + + +
+ + ); }; CustomRender.storyName = 'custom render'; CustomRender.args = { disabled: false, + inverse: false, }; diff --git a/src/__stories__/slider-story.tsx b/src/__stories__/slider-story.tsx index 8c0a6fba0..0f7118ece 100644 --- a/src/__stories__/slider-story.tsx +++ b/src/__stories__/slider-story.tsx @@ -3,6 +3,7 @@ import {Box, ResponsiveLayout, Slider} from '..'; export default { title: 'Components/Slider', + parameters: {fullScreen: true}, }; type Args = { @@ -11,13 +12,14 @@ type Args = { max: number; min: number; tooltip: boolean; + inverse: boolean; }; -export const Controlled: StoryComponent = ({disabled, step, max, min, tooltip}) => { +export const Controlled: StoryComponent = ({disabled, step, max, min, tooltip, inverse}) => { const [value, setValue] = React.useState(min); return ( - - + + = ({disabled, step, max, min, tooltip}) => { +export const Uncontrolled: StoryComponent = ({disabled, step, max, min, tooltip, inverse}) => { return ( - - + + = ({disabled}) => { +export const Controlled: StoryComponent = ({disabled, inverse}) => { const [checked, onChange] = React.useState(false); return ( -
- - switch content - -
+ + +
+ + switch content + +
+
+
); }; Controlled.storyName = 'controlled'; Controlled.args = { disabled: false, + inverse: false, }; -export const Uncontrolled: StoryComponent = ({disabled}) => { +export const Uncontrolled: StoryComponent = ({disabled, inverse}) => { return ( -
- - switch content - -
+ + +
+ + switch content + +
+
+
); }; Uncontrolled.storyName = 'uncontrolled'; Uncontrolled.args = { disabled: false, + inverse: false, }; -export const CustomRender: StoryComponent = ({disabled}) => { +export const CustomRender: StoryComponent = ({disabled, inverse}) => { return ( -
- ( -
- - {checked ? : } - {/* set the text id to match the checkbox name, so this text can be linked as label for accessibility */} - - switch content - - -
- )} - /> -
+ + +
+ ( +
+ + {checked ? ( + + ) : ( + + )} + {/* set the text id to match the checkbox name, so this text can be linked as label for accessibility */} + + switch content + + +
+ )} + /> +
+
+
); }; CustomRender.storyName = 'custom render'; CustomRender.args = { disabled: false, + inverse: false, }; diff --git a/src/checkbox.css.ts b/src/checkbox.css.ts index 740fdefea..bc415b4b1 100644 --- a/src/checkbox.css.ts +++ b/src/checkbox.css.ts @@ -32,7 +32,6 @@ const boxBase = style([ alignItems: 'center', flexShrink: 0, borderRadius: vars.borderRadii.checkbox, - background: vars.colors.background, }), { height: 18, @@ -45,9 +44,24 @@ const boxBase = style([ ]); export const boxVariant = styleVariants({ - ios: [boxBase, {boxShadow: `inset 0 0 0 1px ${vars.colors.control}`}], - rest: [boxBase, {boxShadow: `inset 0 0 0 2px ${vars.colors.control}`}], - checked: [boxBase, {boxShadow: `inset 0 0 0 12px ${vars.colors.controlActivated}`}], + ios: [boxBase, {background: vars.colors.background, boxShadow: `inset 0 0 0 1px ${vars.colors.control}`}], + rest: [ + boxBase, + {background: vars.colors.background, boxShadow: `inset 0 0 0 2px ${vars.colors.control}`}, + ], + checked: [ + boxBase, + {background: vars.colors.background, boxShadow: `inset 0 0 0 12px ${vars.colors.controlActivated}`}, + ], +}); + +export const inverseBoxVariant = styleVariants({ + ios: [boxBase, {background: 'transparent', boxShadow: `inset 0 0 0 1px ${vars.colors.controlInverse}`}], + rest: [boxBase, {background: 'transparent', boxShadow: `inset 0 0 0 2px ${vars.colors.controlInverse}`}], + checked: [ + boxBase, + {background: 'transparent', boxShadow: `inset 0 0 0 12px ${vars.colors.controlActivatedInverse}`}, + ], }); export const check = style([ diff --git a/src/checkbox.tsx b/src/checkbox.tsx index c4871fa67..6ad6dbaeb 100644 --- a/src/checkbox.tsx +++ b/src/checkbox.tsx @@ -10,11 +10,14 @@ import {getPrefixedDataAttributes} from './utils/dom'; import * as styles from './checkbox.css'; import {vars} from './skins/skin-contract.css'; import {combineRefs} from './utils/common'; +import {useIsInverseVariant} from './theme-variant-context'; import type {DataAttributes} from './utils/types'; const IconCheckbox = ({isChecked, disabled}: {isChecked: boolean; disabled?: boolean}) => { const {isIos} = useTheme(); + const isInverse = useIsInverseVariant(); + const variant = isChecked ? 'checked' : isIos ? 'ios' : 'rest'; const icon = isIos ? ( ) : ( @@ -35,15 +38,21 @@ const IconCheckbox = ({isChecked, disabled}: {isChecked: boolean; disabled?: boo height="10" className={classnames(styles.check, {[styles.checkChecked]: isChecked})} > - + ); return (
{icon}
diff --git a/src/progress-bar.css.ts b/src/progress-bar.css.ts index 8d0761790..027cb1312 100644 --- a/src/progress-bar.css.ts +++ b/src/progress-bar.css.ts @@ -1,13 +1,17 @@ import {sprinkles} from './sprinkles.css'; import {vars} from './skins/skin-contract.css'; -import {style, keyframes} from '@vanilla-extract/css'; +import {style, keyframes, styleVariants} from '@vanilla-extract/css'; const transition = '1s cubic-bezier(0.75, 0, 0.27, 1)'; -export const barBackground = sprinkles({ +const barBackgroundBase = sprinkles({ borderRadius: vars.borderRadii.bar, height: 4, - background: vars.colors.barTrack, +}); + +export const barBackground = styleVariants({ + default: [barBackgroundBase, {background: vars.colors.barTrack}], + inverse: [barBackgroundBase, {background: vars.colors.barTrackInverse}], }); export const bar = sprinkles({ @@ -50,6 +54,5 @@ export const inverse = style({ }); export const progressBarSteppedContainer = style({ - display: 'inline-block', width: '100%', }); diff --git a/src/progress-bar.tsx b/src/progress-bar.tsx index c6cd1ebd3..42d4acce5 100644 --- a/src/progress-bar.tsx +++ b/src/progress-bar.tsx @@ -7,6 +7,7 @@ import {getPrefixedDataAttributes} from './utils/dom'; import classNames from 'classnames'; import Inline from './inline'; import * as tokens from './text-tokens'; +import {useIsInverseVariant} from './theme-variant-context'; import type {DataAttributes} from './utils/types'; @@ -31,6 +32,7 @@ export const ProgressBar = ({ reverse = false, }: ProgressBarProps): JSX.Element => { const {texts, t} = useTheme(); + const isInverse = useIsInverseVariant(); const progressValue = Math.max(0, Math.min(100, progressPercent)); const getFormattedLabel = () => { @@ -55,14 +57,16 @@ export const ProgressBar = ({ return (
@@ -89,6 +93,7 @@ export const ProgressBarStepped = ({ 'aria-hidden': ariaHidden, }: ProgressBarSteppedProps): JSX.Element => { const {texts, t} = useTheme(); + const isInverse = useIsInverseVariant(); const [step, setStep] = React.useState(Math.ceil(currentStep)); const [isBack, setIsBack] = React.useState(false); @@ -134,7 +139,11 @@ export const ProgressBarStepped = ({ const hasAnimation = index === step - 1; return ( -