-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 support for pt-file-upload #689
Comments
Sounds good, we'll add support for both |
@llorca This looks tricky: Also, since Also also, the fact that the input is wrapped in a If you can somehow set the ...but it's not possible to do that with the desired CSS API. We'd have to instruct users to set Here are the styles for the example above by the way, complete with new mixins:
|
Thanks for researching! I have a few questions:
|
Ehh, short answer: no. Long answer: let me rephrase. Here's the markup:
I'd intuitively want to disable the File Upload component by adding
Problems:
Summary:
I'd imagine the That has no bearing on disabling click events though (cursor styles still won't look right with
We can't do this if we also want to support |
Ooh, here are two issues from Bootstrap about twbs/bootstrap#17703 Interesting reads. |
Good stuff. @leebyp @giladgray any opinion on the research above? |
|
I'll push a fix based on the hybrid approach. Happy to chat more in the PR. |
i'm onboard with what you've done in the PR, @cmslewis. nice work! |
When pt-file-upload is disabled the following changes should take place:
Change 1 can be accomplished with
.pt-disabled
on the form input. Change 2 can be accomplished with a disabled attribute on the input as well. Change 3 requires custom CSS.Would be nice if these could all be accomplished with a single disabled flag.
The text was updated successfully, but these errors were encountered: