Commit 9e502bed authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_json_editor: Highlight invalid feedback

parent ef735f9b
...@@ -17,16 +17,22 @@ div.json-editor-container label { ...@@ -17,16 +17,22 @@ div.json-editor-container label {
div.json-editor-container label.visually-hidden { div.json-editor-container label.visually-hidden {
display: none; display: none;
} }
div.json-editor-container .alert-danger { div.json-editor-container .invalid-feedback {
padding: 1px 10px 2px 10px;
border-radius: 0.25rem;
border-color: #f5c2c7;
border: 1px solid #f5c2c7;
}
div.json-editor-container .alert-danger,
div.json-editor-container .invalid-feedback {
color: #842029; color: #842029;
background-color: #f8d7da; background-color: #f8d7da;
border-color: #f5c2c7;
} }
div.json-editor-container .alert { div.json-editor-container .alert {
position: relative; position: relative;
padding: 1rem 1rem; padding: 1rem 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
border: 1px solid transparent; border: 1px solid #f5c2c7;
border-radius: 0.25rem; border-radius: 0.25rem;
} }
div.json-editor-container .form-label { div.json-editor-container .form-label {
......
...@@ -22,17 +22,23 @@ div.json-editor-container { ...@@ -22,17 +22,23 @@ div.json-editor-container {
display: none; display: none;
} }
& .alert-danger { & .invalid-feedback{
padding: 1px 10px 2px 10px;
border-radius: 0.25rem;
border-color: #f5c2c7;
border: 1px solid #f5c2c7;
}
& .alert-danger, .invalid-feedback{
color: #842029; color: #842029;
background-color: #f8d7da; background-color: #f8d7da;
border-color: #f5c2c7;
} }
& .alert { & .alert {
position: relative; position: relative;
padding: 1rem 1rem; padding: 1rem 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
border: 1px solid transparent; border: 1px solid #f5c2c7;
border-radius: 0.25rem; border-radius: 0.25rem;
} }
& .form-label { & .form-label {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment