Skip to content

Commit

Permalink
fix(documentation): Typo in version switcher + add loading style (#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq authored Mar 12, 2024
1 parent ab35c3c commit 981ea81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function VersionSwitcher() {
}, []);

if (loading) {
return <div>Loading...</div>;
return <div className="version-switcher-loading">Loading...</div>;
}

const latestVersionMajorMinor = getVersion(
Expand Down Expand Up @@ -103,7 +103,7 @@ function VersionSwitcher() {
);
}}
>
<IconButton placeholder="Versions">Versions {latestVersionMajorMinor}</IconButton>
<IconButton placeholder="Versions">Version {latestVersionMajorMinor}</IconButton>
</WithTooltip>
</Fragment>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@use '../../../node_modules/@swisspost/design-system-styles/variables/type';
@use '../../../node_modules/@swisspost/design-system-styles/variables/spacing';

.version-switcher-loading {
display: flex;
align-items: center;
font-size: type.$font-size-14;
}

.version-switcher-dropdown {
display: flex;
flex-flow: column nowrap;
Expand Down

0 comments on commit 981ea81

Please sign in to comment.