diff --git a/CHANGELOG.md b/CHANGELOG.md index 43d33b7df8e..655b6acc351 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Added `currency` glyph to 'EuiIcon' ([#2398](https://github.com/elastic/eui/pull/2398)) - Migrate `EuiBreadcrumbs`, `EuiHeader` etc, and `EuiLink` to TypeScript ([#2391](https://github.com/elastic/eui/pull/2391)) - Added focus state to `EuiListGroupItem` ([#2406](https://github.com/elastic/eui/pull/2406)) +- Added `keyboardShorcut` glyph to 'EuiIcon ([#2413](https://github.com/elastic/eui/pull/2413)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 2626da56c8e..f96b047a872 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -98,6 +98,7 @@ const iconTypes = [ 'inspect', 'invert', 'ip', + 'keyboardShortcut', 'kqlField', 'kqlFunction', 'kqlOperand', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index c68441bc805..74dc200aef5 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -2539,6 +2539,21 @@ exports[`EuiIcon props type ip is rendered 1`] = ` `; +exports[`EuiIcon props type keyboardShortcut is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type kqlField is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconKeyboardShortcut; diff --git a/src/components/icon/assets/keyboard_shortcut.svg b/src/components/icon/assets/keyboard_shortcut.svg new file mode 100644 index 00000000000..4fd1b835d63 --- /dev/null +++ b/src/components/icon/assets/keyboard_shortcut.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 2989736c85c..8c51db403e6 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -148,6 +148,7 @@ const typeToPathMap = { inspect: 'inspect', invert: 'invert', ip: 'ip', + keyboardShortcut: 'keyboard_shortcut', kqlField: 'kql_field', kqlFunction: 'kql_function', kqlOperand: 'kql_operand',