|
808 | 808 | @apply mb-0;
|
809 | 809 | }
|
810 | 810 |
|
811 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error input, |
812 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error select, |
813 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error textarea { |
| 811 | +.pc-form-field-wrapper--error input, |
| 812 | +.pc-form-field-wrapper--error select, |
| 813 | +.pc-form-field-wrapper--error textarea { |
814 | 814 | @apply border-danger-500 focus:border-danger-500 text-danger-900 placeholder-danger-700 bg-danger-50 dark:text-danger-100 dark:placeholder-danger-300 dark:bg-danger-900 focus:ring-danger-500;
|
815 | 815 | }
|
816 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error input[type="checkbox"] { |
| 816 | +.pc-form-field-wrapper--error input[type="checkbox"] { |
817 | 817 | @apply bg-danger-200 dark:bg-danger-700;
|
818 | 818 | }
|
819 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error |
820 |
| - .pc-switch |
821 |
| - .pc-switch__fake-input { |
| 819 | +.pc-form-field-wrapper--error .pc-switch .pc-switch__fake-input { |
822 | 820 | @apply bg-danger-200 border-danger-500 dark:bg-danger-600 dark:border-danger-800;
|
823 | 821 | }
|
824 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error |
825 |
| - .pc-radio-card |
826 |
| - .pc-radio-card__fake-input { |
| 822 | +.pc-form-field-wrapper--error .pc-radio-card .pc-radio-card__fake-input { |
827 | 823 | @apply bg-danger-200 dark:bg-danger-800 border-danger-500;
|
828 | 824 | }
|
829 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error .pc-label, |
830 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error .pc-checkbox-label { |
| 825 | +.pc-form-field-wrapper--error .pc-label, |
| 826 | +.pc-form-field-wrapper--error .pc-checkbox-label { |
831 | 827 | @apply !text-danger-600 dark:!text-danger-200;
|
832 | 828 | }
|
833 | 829 | .pc-checkbox-label {
|
|
844 | 840 | content: " *";
|
845 | 841 | display: inline;
|
846 | 842 | }
|
847 |
| -.phx-no-feedback.pc-error, |
848 |
| -.phx-no-feedback .pc-error { |
849 |
| - @apply hidden; |
850 |
| -} |
851 | 843 | .pc-form-field-error {
|
852 | 844 | @apply mt-1 text-xs italic text-danger-500;
|
853 | 845 | }
|
854 |
| -.phx-no-feedback.pc-form-field-error { |
855 |
| - @apply hidden; |
856 |
| -} |
857 |
| -.phx-no-feedback .pc-form-field-error { |
858 |
| - @apply hidden; |
859 |
| -} |
860 | 846 | .pc-form-help-text {
|
861 | 847 | @apply mt-2 text-sm text-gray-500 dark:text-gray-400;
|
862 | 848 | }
|
|
1015 | 1001 | }
|
1016 | 1002 |
|
1017 | 1003 | /* Add error state styles */
|
1018 |
| -:not(.phx-no-feedback).pc-form-field-wrapper--error .pc-date-input-icon { |
| 1004 | +.pc-form-field-wrapper--error .pc-date-input-icon { |
1019 | 1005 | @apply bg-danger-50 dark:bg-danger-900;
|
1020 | 1006 | }
|
1021 | 1007 |
|
|
2531 | 2517 | @apply text-sm border-gray-300 rounded-md shadow-sm cursor-pointer disabled:bg-gray-100 disabled:cursor-not-allowed focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:focus:border-primary-500 dark:bg-gray-800 dark:text-gray-300 focus:outline-none;
|
2532 | 2518 | }
|
2533 | 2519 |
|
2534 |
| -label.has-error:not(.phx-no-feedback) { |
| 2520 | +label.has-error { |
| 2521 | + @apply !text-danger-900 dark:!text-danger-200; |
| 2522 | +} |
| 2523 | + |
| 2524 | +span.has-error { |
2535 | 2525 | @apply !text-danger-900 dark:!text-danger-200;
|
2536 | 2526 | }
|
2537 | 2527 |
|
2538 |
| -textarea.has-error:not(.phx-no-feedback), |
2539 |
| -input.has-error:not(.phx-no-feedback):not(:checked), |
2540 |
| -select.has-error:not(.phx-no-feedback) { |
| 2528 | +textarea.has-error, |
| 2529 | +input.has-error:not(:checked), |
| 2530 | +select.has-error { |
2541 | 2531 | @apply !border-danger-500 focus:!border-danger-500 !text-danger-900 !placeholder-danger-700 !bg-danger-50 dark:!text-danger-100 dark:!placeholder-danger-300 dark:!bg-danger-900 focus:!ring-danger-500;
|
2542 | 2532 | }
|
2543 | 2533 |
|
2544 |
| -input[type="file_input"].has-error:not(.phx-no-feedback) { |
| 2534 | +input[type="file_input"].has-error { |
2545 | 2535 | @apply !border-danger-500 !rounded-md focus:!border-danger-500 !text-danger-900 !placeholder-danger-700 !bg-danger-50 file:!border-none dark:!border-none dark:!bg-gray-950 dark:text-danger-400;
|
2546 | 2536 | }
|
2547 | 2537 |
|
|
0 commit comments