hugoBasicExample icon indicating copy to clipboard operation
hugoBasicExample copied to clipboard

Un-nest the <kbd> example

Open jfoshee opened this issue 4 years ago • 2 comments
trafficstars

Nesting <kbd> within <kbd> would be very unusual. The point of this page is to demonstrate commonly used styles. In some cases the nesting causes the individual "keys" to lose their distinction.

jfoshee avatar Jun 21 '21 12:06 jfoshee

agree with @davidsneighbour - I approved the PR, but then took a look at it and decided to 'unapprove' it. In this context it looks correct: image

coliff avatar Jun 21 '21 13:06 coliff

I appreciate the Mozilla docs. I had not seen those semantics before.

However, how many Hugo themes include style rules to render nested <kbd> correctly? I think I've only seen one. The point of this page is to demonstrate common styles. Would you argue that nested <kbd> is more common than un-nested? If it's a quibble, how about we just include examples of both?

jfoshee avatar Jun 21 '21 18:06 jfoshee