-
Notifications
You must be signed in to change notification settings - Fork 166
LG-5231: Remove tooltip from personal key input field #5536
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0ed3831
translate "please fill out this field"
jmdembe 30f9a4c
create partial for future invalidation messages
jmdembe f26a720
add novalidate and validation message partial
jmdembe 1201645
add behavior to show and hide alert messages
jmdembe 6a0c2eb
update tests to reflect new validation message
jmdembe f8b86b5
fix lint error
jmdembe bd88ce3
address PR comments
jmdembe f7a6fef
normalize yml files
jmdembe 501bb0f
remove `keylength` value
jmdembe 74606ef
fix test
jmdembe b068ee3
fix test again
jmdembe 66108bd
remove sanity check, fix submit a wrong code test
jmdembe ae14dac
fix final lint error
jmdembe 8492acf
make error messaging consistent with other errors
jmdembe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <%# | ||
| locals: | ||
| * message: error message to show | ||
| * class: classes to format inline error message | ||
| * text_tag: Optional override HTML tag for text content. Defaults to `p`. | ||
| %> | ||
| <% | ||
| classes = [ | ||
| 'usa-error-message', | ||
| 'display-if-invalid', | ||
| 'validation-message' | ||
| ] | ||
| classes << local_assigns[:class] if local_assigns[:class] | ||
| message = local_assigns.fetch(:message, yield.presence) | ||
| text_tag = local_assigns.fetch(:text_tag, 'p') | ||
| %> | ||
|
|
||
| <%= tag.span( | ||
| role: 'alert', | ||
| class: classes, | ||
| ) do %> | ||
| <%= content_tag(text_tag, message, class: 'usa-alert__text') %> | ||
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we had the number 19 hardcoded before... is there a way to avoid hardcoding this magic number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make 19 a variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meh it's probably not worth it because that doesn't address how we came up with 19 as a length