File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ describe('Kbd', () => {
1616 expect ( container . firstChild ! . nodeName ) . toBe ( 'KBD' ) ;
1717 } ) ;
1818
19+ it ( 'applies the expected Garden ID attribute' , ( ) => {
20+ const { container } = render ( < Kbd /> ) ;
21+
22+ expect ( container . firstChild ) . toHaveAttribute ( 'data-garden-id' , 'typography.kbd' ) ;
23+ } ) ;
24+
1925 it ( 'forces left-to-right text direction' , ( ) => {
2026 const { container } = renderRtl ( < Kbd /> ) ;
2127
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
1111import { StyledCode } from './StyledCode' ;
1212import { IKbdProps } from '../types' ;
1313
14- const COMPONENT_ID = 'typography.code ' ;
14+ const COMPONENT_ID = 'typography.kbd ' ;
1515
1616interface IStyledKbdProps extends ThemeProps < DefaultTheme > {
1717 $size ?: IKbdProps [ 'size' ] ;
You can’t perform that action at this time.
0 commit comments