Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: size of button (#300)

Guilherme Oenning38a4ec77b3ef
diff --git a/public/components/SupportCounter.tsx b/public/components/SupportCounter.tsx
index 57c8dd8c8..bb6e0cc3c 100644
--- a/public/components/SupportCounter.tsx
+++ b/public/components/SupportCounter.tsx
@@ -61,10 +61,10 @@ export class SupportCounter extends React.Component<SupportCounterProps, Support
);
const disabled = (
- <div className={className}>
+ <button className={className}>
<i className="medium caret up icon" />
{this.state.total}
- </div>
+ </button>
);
return (
diff --git a/public/pages/ShowIdea/ShowIdea.page.tsx b/public/pages/ShowIdea/ShowIdea.page.tsx
index 15f21d0d0..79058f925 100644
--- a/public/pages/ShowIdea/ShowIdea.page.tsx
+++ b/public/pages/ShowIdea/ShowIdea.page.tsx
@@ -106,12 +106,12 @@ export class ShowIdeaPage extends React.Component<ShowIdeaPageProps, ShowIdeaPag
?
<div key={1} className="ui list">
<div className="item">
- <Button color="green" fluid={true} onClick={async () => this.saveChanges()}>
+ <Button color="green" size="small" fluid={true} onClick={async () => this.saveChanges()}>
<i className="save icon" /> Save
</Button>
</div>
<div className="item">
- <Button fluid={true} onClick={async () => this.setState({ error: undefined, editMode: false })}>
+ <Button fluid={true} size="small" onClick={async () => this.setState({ error: undefined, editMode: false })}>
<i className="cancel icon" /> Cancel
</Button>
</div>
@@ -119,7 +119,7 @@ export class ShowIdeaPage extends React.Component<ShowIdeaPageProps, ShowIdeaPag
:
<div key={1} className="ui list">
<div className="item">
- <Button fluid={true} onClick={async () => this.setState({ editMode: true })}>
+ <Button fluid={true} size="small" onClick={async () => this.setState({ editMode: true })}>
<i className="edit icon" /> Edit
</Button>
</div>
diff --git a/public/pages/ShowIdea/components/NotificationsPanel.tsx b/public/pages/ShowIdea/components/NotificationsPanel.tsx
index c110356de..c77447830 100644
--- a/public/pages/ShowIdea/components/NotificationsPanel.tsx
+++ b/public/pages/ShowIdea/components/NotificationsPanel.tsx
@@ -37,12 +37,12 @@ export class NotificationsPanel extends React.Component<NotificationsPanelProps,
const button = this.state.subscribed
? (
- <Button fluid={true} onClick={this.subscribeOrUnsubscribe}>
+ <Button size="small" fluid={true} onClick={this.subscribeOrUnsubscribe}>
<i className="volume off icon" /> Unsubscribe
</Button>
)
: (
- <Button fluid={true} onClick={this.subscribeOrUnsubscribe}>
+ <Button size="small" fluid={true} onClick={this.subscribeOrUnsubscribe}>
<i className="volume up icon" /> Subscribe
</Button>
);
diff --git a/public/pages/ShowIdea/components/ResponseForm.tsx b/public/pages/ShowIdea/components/ResponseForm.tsx
index 4ecc5a145..402b0daad 100644
--- a/public/pages/ShowIdea/components/ResponseForm.tsx
+++ b/public/pages/ShowIdea/components/ResponseForm.tsx
@@ -53,7 +53,7 @@ export class ResponseForm extends React.Component<ResponseFormProps, ResponseFor
public render() {
const button = (
- <Button className="respond" fluid={true} onClick={async () => this.showModal()}>
+ <Button className="respond" size="small" fluid={true} onClick={async () => this.showModal()}>
<i className="announcement icon" /> Respond
</Button>
);