mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
Enhance ui-elements to be more accessible on smaller screens (#1950)
Enable breaking of content to be fully available on small screens or highly zoomed displays. This should help improve accessibility. Co-authored-by: Florian Scholdei <florian.scholdei@cloudogu.com> Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
This commit is contained in:
@@ -25,7 +25,8 @@ import React from "react";
|
||||
import { WithTranslation, withTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
import { User } from "@scm-manager/ui-types";
|
||||
import { Icon, createAttributesForTesting } from "@scm-manager/ui-components";
|
||||
import { createAttributesForTesting, Icon } from "@scm-manager/ui-components";
|
||||
import classNames from "classnames";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
user: User;
|
||||
@@ -51,11 +52,13 @@ class UserRow extends React.Component<Props> {
|
||||
|
||||
return (
|
||||
<tr className={user.active ? "border-is-green" : "border-is-yellow"}>
|
||||
<td>
|
||||
<td className="is-word-break">
|
||||
{iconType} {this.renderLink(to, user.name)}
|
||||
</td>
|
||||
<td className="is-hidden-mobile">{this.renderLink(to, user.displayName)}</td>
|
||||
<td>{user.mail ? <a href={`mailto:${user.mail}`}>{user.mail}</a> : null}</td>
|
||||
<td className={classNames("is-hidden-mobile", "is-word-break")}>{this.renderLink(to, user.displayName)}</td>
|
||||
<td className={classNames("is-hidden-mobile", "is-word-break")}>
|
||||
{user.mail ? <a href={`mailto:${user.mail}`}>{user.mail}</a> : null}
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user