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

Fix borders on MarkdownTextarea buttons when disabled #1650

Merged

Conversation

alectrocute
Copy link
Contributor

Hi Lemdevs!

In this PR:

  • Fix borders on disabled MarkdownTextarea buttons when props.isDisabled.

Before:

Screenshot 2023-06-27 at 12 59 29 PM

After:

Screenshot 2023-06-27 at 12 59 19 PM

Thanks!

@alectrocute
Copy link
Contributor Author

Haha, @SleeplessOne1917 looks like we accomplished the same issue within a minute of eachother.

@@ -159,13 +159,16 @@ export class MarkdownTextArea extends Component<
<div className="mb-3 row">
<div className="col-12">
<div className="rounded bg-light border">
<div className="d-flex flex-wrap border-bottom">
<div
className={`d-flex flex-wrap border-bottom ${
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done with classnames:

className={classNames("d-flex flex-wrap border-bottom", {
  "no-click": this.isDisabled,
})}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ll make another PR.

SleeplessOne1917 added a commit that referenced this pull request Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants