diff --git a/graylog2-web-interface/src/components/common/Card.tsx b/graylog2-web-interface/src/components/common/Card.tsx index e6de53001aa5..8cf02ee85af1 100644 --- a/graylog2-web-interface/src/components/common/Card.tsx +++ b/graylog2-web-interface/src/components/common/Card.tsx @@ -22,25 +22,40 @@ import { Card as MantineCard } from '@mantine/core'; const Container = styled(MantineCard)(({ theme }) => css` background-color: ${theme.colors.cards.background}; border-color: ${theme.colors.cards.border}; + + &:focus { + outline: 5px auto Highlight; + outline: 5px auto -webkit-focus-ring-color; + } `); type Props = React.PropsWithChildren<{ className?: string, padding?: 'sm', + id?: string, + tabIndex?: number }> /** * Simple card component. */ -const Card = ({ children, className, padding }: Props) => ( - +const Card = ({ children, className, padding, id, tabIndex }: Props) => ( + {children} ); Card.defaultProps = { className: undefined, + id: undefined, padding: undefined, + tabIndex: undefined, }; export default Card;