Skip to content

Commit

Permalink
Fix case when accesskey is not part of the label
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg committed Oct 27, 2023
1 parent 6037f6e commit d021f57
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const InternalUnderlinedAccessKey = ({ label, accessKey }: Props) => {
return (
<span>
{first}
<u>{accessKey}</u>
{rest.join(accessKey)}
{rest.length ? <u>{accessKey}</u> : null}
{rest.length ? rest.join(accessKey) : null}
</span>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const ButtonAccessKey: FC = () => (
<div className="flex gap-4">
<KolButton _label="Mit S access key" _accessKey="S"></KolButton>
<KolButton _label="Sehr kleines s" _accessKey="s"></KolButton>
<KolButton _label="Access key kommt nicht in label vor" _accessKey="x"></KolButton>
<KolButton _label="access key ohne label" _hideLabel _accessKey="s" _icons="codicon codicon-dashboard"></KolButton>
<KolButton
_label="mit inline icons"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d021f57

Please sign in to comment.