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

community items: accessibility & responsiveness improvements #948

Merged
merged 1 commit into from
May 5, 2023

Conversation

jennur
Copy link
Member

@jennur jennur commented Apr 28, 2023

Closes inveniosoftware/invenio-app-rdm#2182

Needs inveniosoftware/react-invenio-forms#199

  • Accessibility fixes
  • Adds popup for review information (optional through showPermissionLabel-prop)
    Screenshot 2023-04-28 at 16 14 28

const communityType = ui?.type?.title_l10n;

return (
<Item
key={id}
className={`computer tablet only justify-space-between community-item ${itemClassName}`}
>
<Image as={Item.Image} size="tiny" src={links.logo} />
<Image size="tiny" src={links.logo} alt="" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<Image size="tiny" src={links.logo} alt="" />
<Image size="tiny" src={links.logo} alt={i18next.t("Community logo")} />

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this is needed, as the logo doesn't have any functionality and doesn't provide any information, ref https://www.w3.org/WAI/tutorials/images/

@@ -5,13 +5,17 @@ import { Label, Icon } from "semantic-ui-react";
export const CommunityTypeLabel = ({ type }) => {
if (type === undefined) return null;
return (
<Label size="tiny" className="primary">
<Label size="small" horizontal className="primary">
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: its label horizontal by default?

Copy link
Member Author

Choose a reason for hiding this comment

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

The horizontal prop gives it less padding on top/bottom (which makes it look less like a button), and adds right-margin.
Screenshot 2023-05-04 at 13 59 25

vs

Screenshot 2023-05-04 at 13 59 29

@kpsherva kpsherva merged commit 7cf0725 into inveniosoftware:master May 5, 2023
6 checks passed
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.

Check/fix accessibility
2 participants