Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add <kbd> example #756

Merged
merged 1 commit into from Apr 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions live-examples/html-examples/inline-text-semantics/css/kbd.css
@@ -0,0 +1,6 @@
kbd {
background-color: #f5f5f5;
border-style: solid;
border-width: 1px 2px 2px 1px;
padding: 0 1px;
}
1 change: 1 addition & 0 deletions live-examples/html-examples/inline-text-semantics/kbd.html
@@ -0,0 +1 @@
<p>Please press <kbd>Ctrl</kbd> + <kbd>F5</kbd> to re-render an MDN page.</p>
8 changes: 8 additions & 0 deletions live-examples/html-examples/inline-text-semantics/meta.json
Expand Up @@ -8,6 +8,14 @@
"title": "HTML Demo: &lt;abbr&gt;",
"type": "tabbed"
},
"kbd": {
"baseTmpl": "tmpl/live-tabbed-tmpl.html",
"exampleCode": "live-examples/html-examples/inline-text-semantics/kbd.html",
"cssExampleSrc": "live-examples/html-examples/inline-text-semantics/css/kbd.css",
"fileName": "kbd.html",
"title": "HTML Demo: &lt;kbd&gt;",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be <kbd> if #777 gets merged before.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I reckon this one will merge first.

"type": "tabbed"
},
"strong": {
"baseTmpl": "tmpl/live-tabbed-tmpl.html",
"exampleCode": "live-examples/html-examples/inline-text-semantics/strong.html",
Expand Down