Files
Tom Moor f78f285ec0 feat: Improve keyboard shortcuts guide ally (#13193)
* fix: Ally for keyboard shortcut guide

* Remove translations

* feedback
2026-07-29 19:17:11 -04:00

26 lines
787 B
TypeScript

import styled from "styled-components";
type Props = {
/** Set to true if displaying a single symbol character to disable monospace */
symbol?: boolean;
};
const Key = styled.kbd<Props>`
display: inline-block;
padding: 4px 6px;
font-size: 11px;
font-family: ${(props) =>
props.symbol ? props.theme.fontFamily : props.theme.fontFamilyMono};
/* Disambiguation for "I" and slashed zero so "0" doesn't read as "O" */
font-feature-settings: "cv08", "zero";
line-height: 10px;
color: ${(props) => props.theme.almostBlack};
vertical-align: middle;
background-color: ${(props) => props.theme.smokeLight};
border: solid 1px ${(props) => props.theme.slateLight};
border-bottom-color: ${(props) => props.theme.slate};
border-radius: 3px;
`;
export default Key;