Skip to content

Add disabled option to text field#139

Open
dNitza wants to merge 3 commits intomasterfrom
add-disabled-option-to-text-field
Open

Add disabled option to text field#139
dNitza wants to merge 3 commits intomasterfrom
add-disabled-option-to-text-field

Conversation

@dNitza
Copy link
Copy Markdown

@dNitza dNitza commented May 29, 2018

This PR sets a text field to be disabled if the disabled property in the AST is true. A bunch of file have changed here (looks like style only) but the main change is here:

8bef9c0

@makenosound
Copy link
Copy Markdown
Contributor

@dNitza Nice one. JS change looks fine. Wondering if we should add some specific styling to make it obvious when a form is disabled is the only thing.

@dNitza
Copy link
Copy Markdown
Author

dNitza commented May 30, 2018

Hey @makenosound. Yeah I recon that's a good idea. Shall update the PR with that change when I get a chance :)

@makenosound
Copy link
Copy Markdown
Contributor

Yep, that’d be great. I’m not sure we have an existing sort of style to suit that, but something probably:

  • Faded back a bit or greyed out
  • With a cursor: disabled I suppose

... would be enough

Wanted to do `composes: greyMidColor normal sans from styles;`, but mcss
is le confusing
composes: mono from styles;
}

:disabled {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This isn’t quite the right way to do this, @dNitza. CSS Modules stuff should be local and I think that selector will end up global by default. I’m going to merge the emotion branch into master soon (today hopefully) so perhaps back this out and we can redo it with the emotion setup?

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.

2 participants