Skip to content

Commit

Permalink
fix theme and code snipper
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 18, 2024
1 parent b1fb108 commit befee3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
17 changes: 3 additions & 14 deletions apps/storybook/docs-components/CodeSnippet/CodeSnippet.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,8 @@
height: fit-content;
}

.copyContainer {
position: sticky;
top: 0;
left: 0;
height: calc(100% - 1px);
width: calc(100% - 1px);
float: left;
margin-right: -100%;
pointer-events: none;
}

.icon {
.copyButton {
position: absolute;
top: var(--ds-spacing-4);
right: var(--ds-spacing-4);
top: var(--ds-spacing-2);
right: var(--ds-spacing-2);
}
2 changes: 1 addition & 1 deletion apps/storybook/docs-components/CodeSnippet/CodeSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const CodeSnippet = ({
<Button
onMouseEnter={() => setToolTipText('Kopier')}
onClick={() => onButtonClick()}
className={classes.icon}
className={classes.copyButton}
title='Kopier'
icon
color='neutral'
Expand Down
4 changes: 2 additions & 2 deletions apps/theme/components/ColorPicker/ColorPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ColorPicker = ({
const getStatus = () => {
return (
<div>
<Popover
<Popover.Root
onOpenChange={function Ya() {}}
placement='top'
size='sm'
Expand Down Expand Up @@ -90,7 +90,7 @@ export const ColorPicker = ({
)}
</div>
</Popover.Content>
</Popover>
</Popover.Root>
</div>
);
};
Expand Down

0 comments on commit befee3a

Please sign in to comment.