-
Notifications
You must be signed in to change notification settings - Fork 71
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
Conversation
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="" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Image size="tiny" src={links.logo} alt="" /> | |
<Image size="tiny" src={links.logo} alt={i18next.t("Community logo")} /> |
There was a problem hiding this comment.
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/
...emantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js
Outdated
Show resolved
Hide resolved
...emantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemComputer.js
Outdated
Show resolved
Hide resolved
.../semantic-ui/js/invenio_communities/community/communitiesItems/CommunityCompactItemMobile.js
Show resolved
Hide resolved
...ssets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityItemComputer.js
Show resolved
Hide resolved
.../assets/semantic-ui/js/invenio_communities/community/communitiesItems/CommunityItemMobile.js
Show resolved
Hide resolved
@@ -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"> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes inveniosoftware/invenio-app-rdm#2182
Needs inveniosoftware/react-invenio-forms#199
showPermissionLabel
-prop)