Use the same style for webcomponent validation messages as legacy messages, update both to latest webcomponent style.

This commit is contained in:
nathan 2022-05-05 15:40:28 -06:00
parent 245fbb2d82
commit ca563cf8fb
2 changed files with 11 additions and 31 deletions

View File

@ -57,19 +57,6 @@ const Et2InputWidgetMixin = (superclass) =>
.input-group__container > .input-group__input ::slotted(.form-control) {
width: 100%;
}
/* Validation error styles */
::slotted(lion-validation-feedback[type]) {
position: absolute;
padding: 5px 1ex;
background-color: white;
border: 1px solid;
border-color: var(--primary-color);
z-index: 1;
}
::slotted(lion-validation-feedback[type=error])
{
border-color: red;
}
`
];
}

View File

@ -246,7 +246,6 @@ label.et2_label.et2_label_empty > * {
#msg,
.message {
color: red;
font-style: italic;
}
input.et2_url {
@ -2025,33 +2024,27 @@ table.et2_grid tbody.ui-sortable:not(.ui-sortable-disabled) > tr:not(.th) {
* Message styles
*/
/* Style used for a generic message (such as success messages or validation errors) */
div.message {
div.message, lion-validation-feedback[type] {
display: block;
border: 1px solid gray;
padding: 3px 3px 3px 22px;
margin: 5px 0px 5px 0px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-repeat: no-repeat;
background-position: 3px center;
border: 1px solid;
border-color: var(--primary-color, gray);
background-color: white;
padding: 5px 1ex;
margin: 0px;
clear: left;
max-width: 500px;
}
div.message.floating {
display: inline-block;
margin: 0px 5px 0px 5px;
div.message.floating, lion-validation-feedback[type] {
position: absolute;
margin: 0px;
z-index: 1;
}
.message.validation_error {
.message.validation_error, lion-validation-feedback[type="error"] {
color: #a93030;
font-style: italic;
background-color: #f3d4d0;
border-color: #a93030;
background-image: url(images/error.png);
background-repeat: no-repeat;
padding-left: 20px;
}
.message.success {