storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.21k stars 9.26k forks source link

Unicode characters in title have weird whitespace around them #10637

Closed kurbar closed 4 years ago

kurbar commented 4 years ago

Describe the bug When using unicode characters in story titles that get rendered in the browsers tab title, there is whitespace around the unicode characters.

To Reproduce Steps to reproduce the behavior:

  1. Create a story and add a unicode character to the name so it shows up in the browser tab title. Copy-pasterino for ease - ü õ ö ä
    <Meta title='UI/Tüpograafia' />
  2. Serve Storybook

Expected behavior No whitespace around unicode characters.

Screenshots image

System:

Environment Info:

  System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
  Binaries:
    Node: 11.15.0 - ~/.nvm/versions/node/v11.15.0/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v11.15.0/bin/npm
  Browsers:
    Chrome: 81.0.4044.129
    Firefox: 74.0
    Safari: 12.1.2
  npmPackages:
    @storybook/addon-a11y: ^6.0.0-beta.1 => 6.0.0-beta.1 
    @storybook/addon-actions: ^6.0.0-beta.1 => 6.0.0-beta.1 
    @storybook/addon-docs: ^6.0.0-beta.1 => 6.0.0-beta.1 
    @storybook/addon-knobs: ^6.0.0-beta.1 => 6.0.0-beta.1 
    @storybook/addon-links: ^6.0.0-beta.1 => 6.0.0-beta.1 
    @storybook/addons: ^6.0.0-beta.1 => 6.0.0-beta.1 
    @storybook/vue: ^6.0.0-beta.1 => 6.0.0-beta.1 

Additional context Issue appears in 5.3 and 6.0 beta. Didn't test older versions.

stale[bot] commented 4 years ago

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

stale[bot] commented 4 years ago

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!