)}
</div>
- <ul className="sw-flex sw-gap-2 sw-items-center sw-body-xs">
+ <TextSubdued as="ul" className="sw-flex sw-gap-1 sw-items-center sw-body-xs">
<li>{rule.langName}</li>
<SeparatorCircleIcon aria-hidden as="li" />
},
]}
>
- <TextSubdued className="sw-whitespace-nowrap">
- <TypeHelper
- className="sw-flex sw-items-center"
- iconFill="iconTypeDisabled"
- type={rule.type}
- />
- </TextSubdued>
+ <TypeHelper
+ className="sw-flex sw-items-center"
+ iconFill="iconTypeDisabled"
+ type={rule.type}
+ />
</DocumentationTooltip>
</li>
</li>
</>
)}
- </ul>
+ </TextSubdued>
<div className="sw-flex sw-items-center">{this.renderActions()}</div>
</div>
'sw-body-xs sw-overflow-hidden sw-whitespace-nowrap sw-max-w-abs-150';
return (
- <ul className="sw-flex sw-items-center sw-gap-2 sw-body-xs">
+ <ul className="sw-flex sw-items-center sw-gap-1 sw-body-xs">
{issue.quickFixAvailable && (
<>
<li className={issueMetaListItemClassNames}>
<SeparatorCircleIcon aria-hidden as="li" />
- <IssueType issue={issue} />
+ <IssueType issue={issue} height={12} width={12} />
<SeparatorCircleIcon data-guiding-id="issue-4" aria-hidden as="li" />
- <IssueSeverity issue={issue} />
+ <IssueSeverity issue={issue} height={12} width={12} />
</ul>
);
}
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { TextSubdued } from 'design-system';
+import { IconProps, TextSubdued } from 'design-system';
import * as React from 'react';
import { translate } from '../../../helpers/l10n';
import { IssueSeverity as IssueSeverityType } from '../../../types/issues';
import IssueSeverityIcon from '../../icon-mappers/IssueSeverityIcon';
import { DeprecatedFieldTooltip } from './DeprecatedFieldTooltip';
-interface Props {
+interface Props extends IconProps {
issue: Pick<Issue, 'severity'>;
}
-export default function IssueSeverity({ issue }: Readonly<Props>) {
+export default function IssueSeverity({ issue, ...iconProps }: Readonly<Props>) {
return (
<DocumentationTooltip
content={<DeprecatedFieldTooltip field="severity" />}
fill="iconSeverityDisabled"
severity={issue.severity as IssueSeverityType}
aria-hidden
+ {...iconProps}
/>
{translate('severity', issue.severity)}
</TextSubdued>
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { TextSubdued } from 'design-system';
+import { IconProps, TextSubdued } from 'design-system';
import * as React from 'react';
import { translate } from '../../../helpers/l10n';
import { Issue } from '../../../types/types';
import IssueTypeIcon from '../../icon-mappers/IssueTypeIcon';
import { DeprecatedFieldTooltip } from './DeprecatedFieldTooltip';
-interface Props {
+interface Props extends IconProps {
issue: Pick<Issue, 'type'>;
}
-export default function IssueType({ issue }: Readonly<Props>) {
+export default function IssueType({ issue, ...iconProps }: Readonly<Props>) {
return (
<DocumentationTooltip
content={<DeprecatedFieldTooltip field="type" />}
]}
>
<TextSubdued className="sw-flex sw-items-center sw-gap-1/2">
- <IssueTypeIcon fill="iconTypeDisabled" type={issue.type} aria-hidden />
+ <IssueTypeIcon fill="iconTypeDisabled" type={issue.type} aria-hidden {...iconProps} />
{translate('issue.type', issue.type)}
</TextSubdued>
</DocumentationTooltip>
export default function TypeHelper(props: Props) {
return (
<span className={props.className}>
- <IssueTypeIcon className="sw-mr-1" type={props.type} fill={props.iconFill} />
+ <IssueTypeIcon
+ className="sw-mr-1"
+ type={props.type}
+ fill={props.iconFill}
+ height={12}
+ width={12}
+ />
{translate('issue.type', props.type)}
</span>
);