Project

General

Profile

0001-forms-remove-required-border-on-optionnal-bloc-field.patch

Nicolas Roche, 10 April 2024 11:47 AM

Download (1.4 KB)

View differences:

Subject: [PATCH] forms: remove required border on optionnal bloc fields
 (#89361)

 static/includes/_forms.scss | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
static/includes/_forms.scss
650 650
	p {
651 651
		margin: 0;
652 652
		display: inline-block;
653 653
	}
654 654
}
655 655

  
656 656
@if ($field-on-error-style == classic) {
657 657
	.widget-with-error {
658
		input, textarea, select {
658
		input[required], textarea[required], select[required] {
659 659
			border-left-color: $error-color;
660 660
			border-left-width: 3px;
661 661
		}
662 662
		.title label {
663 663
			color: mix($error-color, $font-color, $weight: 70%);
664 664
		}
665 665
		div.hint, .content label {
666 666
			color: mix($error-color, $font-color, $weight: 30%);
......
708 708
				background: $widget-focus-background;
709 709
				border: $widget-focus-border;
710 710
				border-width: 0 0 1px 0;
711 711
			}
712 712
		}
713 713
	}
714 714
	@if ($field-on-error-style = classic) {
715 715
		.widget-with-error {
716
			input, textarea, select {
716
			input[required], textarea[required], select[required] {
717 717
				border-left-width: 0;
718 718
				border-color: $error-color;
719 719
			}
720 720
		}
721 721
	}
722 722
}
723 723

  
724 724
// Button with FontAwesome icon
725
-