Foundation.mozilla.org: "has-danger" class for the footer newsletter signup is invisible.

Created on 8 Aug 2019  路  11Comments  路  Source: mozilla/foundation.mozilla.org

When the footer's newsletter signup input field has the has-danger class, which is supposed to highlight an error with a red border, there does not appear to be a visual cue:

image

As a design question: does this need a visual cue at all?
As dev question: if yes, what's the best SCSS to use here? If no, is it more work to remove the code that adds has-danger than it is to just leave it as is? (with a code comment that points to this issue)

engineering

All 11 comments

I think @mmmavis worked on some of this so maybe she has some suggestions?

@natalieworth mocked up all the success and error states here https://redpen.io/p/nr17f804a498f8d46c

I'm not sure what "has danger" means but do any of these comps help?

image

image

image

@kristinashu has-danger is just a class name we use in code to tag invalid elements in the form.

Do you know if we want the above treatment (highlighted error fields in red border + add exclamation mark icon) to be applied on both "dark mode" signup form (e.g., form on nav, footer) & "regular" signup form (in-page form like on bannered campaign page)?

Yes, ideally they would be consistent.

Yes, ideally they would be consistent.

Cool. This makes implementation more straightforward 馃槀

@youriwims do you have all you need to work on this ticket? Oops sorry I thought Youri was assigned on this ticket. Ignore me plz.

@natalieworth could you upload the exclamation icon pls? 馃檹 Also, should there be a different error message for when there's no email typed & when there's an incorrect email? Just double checking since on prod, both messages are the same.

error icon.svg.zip

@youriwims Is svg okay?

Yep, that svg should work.

Also, should there be a different error message for when there's no email typed & when there's an incorrect email? Just double checking since on prod, both messages are the same.

鈽濓笍 @natalieworth

Also, I couldn't find the error states in Abstract, can you upload them, pls?

fyi for using $red for both 'dark mode' and 'regular mode'

Screen Shot 2019-08-28 at 11 23 44 AM
Screen Shot 2019-08-28 at 11 23 55 AM

Let use the $red for the dark background and our $dark-red for the white background (since we can't get 1 color that will accessibly work for both)

@youriwims Added error states for the footer back in the Foundation Site abstract file under 'Footer WIP' section:

Screen Shot 2019-08-28 at 10 29 04 PM

cc @mmmavis

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alanmoo picture alanmoo  路  3Comments

kristinashu picture kristinashu  路  5Comments

benhohner picture benhohner  路  4Comments

hannahkane picture hannahkane  路  3Comments

hannahkane picture hannahkane  路  3Comments