[docs] Small style changes (#2805)

This PR has some superficial style changes for the docs.

### Change Type

- [ ] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [x] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know
This commit is contained in:
Steve Ruiz 2024-02-13 10:07:29 +00:00 committed by GitHub
parent ad58bbb98b
commit 2c87c20b0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 85 deletions

View file

@ -111,9 +111,10 @@ export function Search() {
/>
{platform && (
<span className="search__keyboard">
{platform === 'mac' && <kbd data-platform="mac"></kbd>}
{platform === 'nonMac' && <kbd data-platform="win">Ctrl</kbd>}
<kbd>K</kbd>
<kbd data-platform={platform === 'mac' ? 'mac' : 'win'}>
<span>{platform === 'mac' ? '⌘' : 'Ctrl'}</span>
<span>K</span>
</kbd>
</span>
)}
</div>