Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New style for ipfs buttons #8464

Merged
merged 1 commit into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/ipfs_ui/components/daemonStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as React from 'react'

import { getLocale } from '../../common/locale'

import { PaddedButton, Section, SideBySideButtons, Title, Error } from '../style'
import { PaddedButton, BorderlessButton, Section, SideBySideButtons, Title, Error } from '../style'

interface Props {
daemonStatus: IPFS.DaemonStatus
Expand Down Expand Up @@ -57,7 +57,7 @@ export class DaemonStatus extends React.Component<Props, {}> {
/>
)}
{this.props.addressesConfig.api && !this.props.daemonStatus.restarting && (
<PaddedButton
<BorderlessButton
text={getLocale('openWebUI')}
size={'small'}
onClick={this.props.onOpenNodeWebUI}
Expand Down
6 changes: 6 additions & 0 deletions components/ipfs_ui/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ export const SideBySideButtons = styled('div')<{}>`
`

export const PaddedButton = styled(Button as React.ComponentType<ButtonProps>)`
background-color: white;
color: black;
margin: 5px;
`

export const BorderlessButton = styled(PaddedButton as React.ComponentType<ButtonProps>)`
border-style: none
`

export const GrayStyle = {
color: 'grey'
}
Expand Down