Skip to content

Commit

Permalink
fix(storybook): update version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Oct 8, 2024
1 parent 1c45365 commit a922221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/storybook/.storybook/addons/odsVersions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { addons, types } from '@storybook/manager-api';
import { ODS_BUTTON_VARIANT, ODS_ICON_NAME } from '@ovhcloud/ods-components';
import { ODS_BUTTON_ICON_ALIGNMENT, ODS_BUTTON_VARIANT, ODS_ICON_NAME } from '@ovhcloud/ods-components';
import { OdsButton, OdsLink, OdsPopover } from '@ovhcloud/ods-components/react';
import React from 'react';
import versions from '../../assets/ods-versions.json';
Expand All @@ -15,6 +15,7 @@ const odsVersionsAddon = () => {
return (
<div style={{ textAlign: 'center' }}>
<OdsButton icon={ ODS_ICON_NAME.chevronDown }
iconAlignment={ ODS_BUTTON_ICON_ALIGNMENT.right }
id="ods-version-current"
label={ versions[0] }
variant={ ODS_BUTTON_VARIANT.ghost } />
Expand All @@ -24,7 +25,7 @@ const odsVersionsAddon = () => {
{
(versions || []).map((version, idx) => (
<OdsLink key={ idx }
style={{ display: 'block' }}
style={{ display: 'block', padding: '0 2rem' }}
href={ `${BASE_URL}/v${version}` }
label={ version }
target="_blank" />
Expand Down

0 comments on commit a922221

Please sign in to comment.