Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added icon in form validation in #22762 #23312

Closed
wants to merge 7 commits into from

Conversation

chiraggmodi
Copy link
Contributor

added form validation icon mention in #22762

&:focus {
box-shadow: 0 0 0 .2rem rgba($color,.25);
box-shadow: 0 0 0 0.2rem rgba($color, 0.25);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.2 should be written without a leading zero as .2
0.25 should be written without a leading zero as .25

@@ -56,8 +75,9 @@
.was-validated &:#{$state},
&.is-#{$state} {
~ .custom-control-indicator {
background-color: rgba($color, .25);
background-color: rgba($color, 0.25);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.25 should be written without a leading zero as .25

@@ -40,6 +52,13 @@
}
}

// Validation icon top for textarea
textarea.form-control,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying class selectors with an element.


&:focus {
box-shadow: 0 0 0 .2rem rgba($color,.25);
box-shadow: 0 0 0 0.2rem rgba($color, 0.25);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.2 should be written without a leading zero as .2
0.25 should be written without a leading zero as .25

&:focus {
box-shadow: 0 0 0 .2rem rgba($color,.25);
box-shadow: 0 0 0 0.2rem rgba($color, 0.25);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.2 should be written without a leading zero as .2
0.25 should be written without a leading zero as .25

@@ -56,8 +75,9 @@
.was-validated &:#{$state},
&.is-#{$state} {
~ .custom-control-indicator {
background-color: rgba($color, .25);
background-color: rgba($color, 0.25);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.25 should be written without a leading zero as .25

@@ -40,6 +52,13 @@
}
}

// Validation icon top for textarea
textarea.form-control,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying class selectors with an element.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can any one please guide me on this issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this work?

element {
  &.class {
  }
}

EDIT: nah, it would still complain.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@XhmikosR Thank you!!


&:focus {
box-shadow: 0 0 0 .2rem rgba($color,.25);
box-shadow: 0 0 0 0.2rem rgba($color, 0.25);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.2 should be written without a leading zero as .2
0.25 should be written without a leading zero as .25

@chiraggmodi
Copy link
Contributor Author

can any one let me know what is the right way for this Avoid qualifying class selectors with an element. validation issue?

@@ -40,6 +52,15 @@
}
}

// Validation icon top for textarea
textarea {
&.form-control,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

@@ -40,6 +52,15 @@
}
}

// Validation icon top for textarea
textarea {
&.form-control,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

background-image: $form-icon-success;
}

@if $state == "invalid" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe @else if...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup definitely good suggestion @vsn4ik

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsn4ik and @XhmikosR made changes as per suggestion.

background-image: $form-icon-success;
}

@else if $state == "invalid" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@else should be placed on same line as previous curly brace

@XhmikosR
Copy link
Member

@mdo: what do we do with this? I think we better drop this from a quick look...

@mdo
Copy link
Member

mdo commented Jul 8, 2018

New PR at #26824.

@mdo mdo closed this Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants