From 01efa194416a2b49759e5908ad439238f1ee7fae Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Wed, 25 Oct 2023 11:17:06 +0200 Subject: [PATCH] Add color mode on form validation --- scss/_root.scss | 3 + scss/_variables-dark.scss | 11 ++- scss/_variables.scss | 1 + scss/mixins/_forms.scss | 1 + site/content/docs/5.3/dark-mode.md | 119 ++++++++++++++++++++++++++++- 5 files changed, 130 insertions(+), 5 deletions(-) diff --git a/scss/_root.scss b/scss/_root.scss index 3684f7bd8d..7c9f30eba5 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -158,6 +158,9 @@ color-scheme: dark; // scss-docs-start root-dark-mode-vars + --#{$prefix}success-icon: #{escape-svg($success-icon-dark)}; // Boosted mod + --#{$prefix}error-icon: #{escape-svg($danger-icon-dark)}; // Boosted mod + --#{$prefix}body-color: #{$body-color-dark}; --#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)}; --#{$prefix}body-bg: #{$body-bg-dark}; diff --git a/scss/_variables-dark.scss b/scss/_variables-dark.scss index 501db9f13f..652ee90a39 100644 --- a/scss/_variables-dark.scss +++ b/scss/_variables-dark.scss @@ -94,6 +94,9 @@ $disabled-filter-dark: brightness(0) invert(1) brightness(.4) !default; // Boos $focus-visible-inner-color-dark: $black !default; // Boosted mod $focus-visible-outer-color-dark: $white !default; // Boosted mod +$success-icon-dark: url("data:image/svg+xml,") !default; // Boosted mod +$danger-icon-dark: url("data:image/svg+xml,") !default; // Boosted mod + // // Forms // @@ -106,10 +109,10 @@ $form-select-disabled-indicator-dark: escape-svg(url("data:image/svg+xml, -### Labels, required fields & text +### Labels, fields & text

No theme

@@ -3155,3 +3155,120 @@ sitemap_exclude: true + +### Form validation + +

No theme

+ +
+ + + + +
+
+
+
+
+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+
+ +

Dark theme on container

+ +
+ + + + +
+
+
+
+
+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+
+ +

Light theme on container

+ +
+ + + + +
+
+
+
+
+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+
+ +

Dark theme on component

+ +
+ + + + +
+
+
+
+
+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+
+ +

Light theme on component

+ +
+ + + + +
+
+
+
+
+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+

Invalid feedback

+