I'm using Semantic-UI
and I was trying to add a warning message
to my Form
, like this:
<form>
...stuff...
<div class="ui warning message">
<div class="header">
Title of the message
</div>
Text of the message
</div>
</form>
But for some reason it wasn't showing up at all on the page.
Only after I found out that it's because SemanticUI's own internal CSS rules explicitly hide messages inside forms. From semantic.min.css
:
.ui.form .error.message, .ui.form .success.message, .ui.form .warning.message {
display: none;
}
Why is this? Can I override it? Is there a reason why I shouldn't?