Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Develop example of alert dialog design pattern #101
@mcking65 - I had been working on an example of this pattern recently when I found this issue - would any of the code in the following gist suit your needs?
added this to Next Steps
in Alert and Alert Dialog Patterns and Examples Development Project
Dec 7, 2017
Evan, I really like the simplicity of the approach for this example -- a discard text function.
Rather than an alert when there is no text to discard, seems like it would better demonstrate good practice to mark the button disabled. To include an alert, perhaps we put a 100 character limit on the field and then warn the person when they get to 90 with an alert and another alert when they get to 100. I suggest reasonably low numbers so it doesn't take a long time to experience the alerts.
Tested with FF 60.0.1 and Chrome 66.0.3359.181 on Win10.
Per Matt's 6/8/2018 email:
Confirmed expected result.