Skip to content
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

ErrorMessage: remove content class wrapper #223

Closed
wants to merge 1 commit into from

Conversation

jennur
Copy link
Member

@jennur jennur commented Nov 10, 2023

Removes the white bg box in the error message component (caused by nested .content classes).

Before
Screenshot 2023-11-09 at 4 45 54 PM

After
Screenshot 2023-11-09 at 4 47 04 PM

@@ -51,11 +51,11 @@ export class ErrorMessage extends Component {
return (
<Message icon {...uiProps}>
{icon && <Icon name={icon} />}
<Message.Content role="alert">
<div role="alert">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small suggestion, wouldn't it be more pratical to fix it in the css instead? Otherwise we implement the message component from semantic ui in conflict with documentation, and each time there is Message.Content used we need to remember no to use it. Fixing the styling would solve it once for all and make it compliant with the documentation

@jennur
Copy link
Member Author

jennur commented Nov 10, 2023

CSS fixed in inveniosoftware/invenio-app-rdm#2532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants