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

Add disabled option to text field #139

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dNitza
Copy link

@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
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
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
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
@@ -10,3 +10,8 @@
.code {
composes: mono from styles;
}

:disabled {
Copy link
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