Add notification to user to add accessible namespaces (#2173)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-03-23 13:21:47 -04:00
1 parent 0b99377feb
commit ee4d434d35
9 files changed
+85 -18

No files matched your search

+4 -5
View File
@@ -6,19 +6,18 @@ interface Props {
className?: string;
title: React.ReactNode;
compact?: boolean; // no bottom padding
id?: string;
}
export class SubTitle extends React.Component<Props> {
render() {
const { compact, title, children } = this.props;
let { className } = this.props;
className = cssNames("SubTitle", className, {
const { className, compact, title, children, id } = this.props;
const classNames = cssNames("SubTitle", className, {
compact,
});
return (
<div className={className}>
<div className={classNames} id={id}>
{title} {children}
</div>
);