/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { html } from "lit"; import "mail/base/content/widgets/search-bar.mjs"; import "mail/themes/shared/mail/colors.css"; import "mail/themes/shared/mail/variables.css"; import "mail/themes/shared/mail/widgets.css"; export default { title: "Design System/Keyboard Shortcut Indicator", tags: ["autodocs"], }; export const KeyboardShortcutIndicator = () => html`
chrome://messenger/skin/widgets.css:
These indicators should be used to visualize keyboard shortcuts inside a SearchBar custom element placeholder, or inline labels and actionable options.
The background colors use have variants for light, dark and high contrast modes, while the text color is inherited from the parent element.
`; export const StandaloneIndicator = () => html` Type something… Ctrl+Shift+A `; export const SearchBarIndicator = () => html`