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', () => {
16
16
expect ( container . firstChild ! . nodeName ) . toBe ( 'KBD' ) ;
17
17
} ) ;
18
18
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
+
19
25
it ( 'forces left-to-right text direction' , ( ) => {
20
26
const { container } = renderRtl ( < Kbd /> ) ;
21
27
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
11
11
import { StyledCode } from './StyledCode' ;
12
12
import { IKbdProps } from '../types' ;
13
13
14
- const COMPONENT_ID = 'typography.code ' ;
14
+ const COMPONENT_ID = 'typography.kbd ' ;
15
15
16
16
interface IStyledKbdProps extends ThemeProps < DefaultTheme > {
17
17
$size ?: IKbdProps [ 'size' ] ;
You can’t perform that action at this time.
0 commit comments