Skip to content

Commit

Permalink
Merge pull request #245 from CivicDataLab/d4d
Browse files Browse the repository at this point in the history
D4d
  • Loading branch information
PixeledCode authored Oct 16, 2023
2 parents b2cf318 + 895b6dc commit a433f11
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,25 +315,25 @@ const Content = ({
</Tabs>
<div className="mt-3 flex justify-end gap-4">
<Button
kind="secondary"
variant="interactive"
onClick={() => {
copyURLToClipboard();
toast({
title: 'Copied to clipboard!',
});
}}
>
<Text variant="bodyMd" as="span">
Copy Link
</Text>
Copy Link
</Button>
<Button
kind="secondary"
variant="interactive"
onClick={() => {
exportAsImage(contentRef.current, 'explorer');
}}
>
<Text variant="bodyMd" as="span">
Download
</Text>
Download
</Button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,20 @@ export const SourceData = ({
/>
<div className="mt-3 flex justify-end gap-4">
<Button
kind="secondary"
variant="interactive"
onClick={() => {
copyURLToClipboard();
toast({
title: 'Copied to clipboard',
});
}}
>
<Text variant="bodyMd" as="span">
Copy Link
</Text>
Copy Link
</Button>
<Button
kind="secondary"
variant="interactive"
onClick={() => {
downloadTable(
columns,
Expand All @@ -170,9 +172,7 @@ export const SourceData = ({
);
}}
>
<Text variant="bodyMd" as="span">
Download
</Text>
Download
</Button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,25 +232,25 @@ const TabLayout = ({
{tabValue === 'overview' && (
<div className="mb-3 flex items-center justify-end gap-4 flex-wrap">
<Button
kind="secondary"
variant="interactive"
onClick={() => {
copyURLToClipboard();
toast({
title: 'Copied to clipboard',
});
}}
>
<Text variant="bodyMd" as="span">
Copy Link
</Text>
Copy Link
</Button>
<Button
kind="secondary"
variant="interactive"
onClick={() => {
exportAsImage(overviewRef.current, 'overview');
}}
>
<Text variant="bodyMd" as="span">
Download
</Text>
Download
</Button>
</div>
)}
Expand Down
1 change: 1 addition & 0 deletions packages/opub-ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// import '@storybook/addon-console';
import { themes } from '@storybook/theming';
import '../assets/styles.css';
import '../styles/_variables.css';
import { Tooltip } from '../src/components/Tooltip';
import React from 'react';

Expand Down
1 change: 0 additions & 1 deletion packages/opub-ui/assets/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import './reset.css';
@import './base.css';
@import './tokens.css';
@import '../styles/_variables.css';
@import './styles-bundled.css';
3 changes: 1 addition & 2 deletions packages/opub-ui/src/components/Button/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@
line-height: 0;

&:last-child {
margin-right: var(--button-disclosure-icon-offset);
margin-left: var(--space-1);
margin-right: -2px;
}

.fullWidth.textAlignLeft &:last-child:not(:only-child) {
Expand Down

0 comments on commit a433f11

Please sign in to comment.