-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Bugfix: scope CSS of input elements #2589
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
Changes from 6 commits
dd6ed5b
745f0f3
aa85b3c
494e23d
3e6b531
1623592
53bdf71
b156dc4
c4ca03b
11af805
ffcc9eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
input:invalid { | ||
input.dash-input:invalid { | ||
outline: solid red; | ||
} | ||
|
||
input:valid { | ||
input.dash-input:valid { | ||
outline: none black; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,15 +54,6 @@ | |
], | ||
"description": "Indicates whether controls in this form can by default have their values automatically completed by the browser." | ||
}, | ||
"autoFocus": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. weird, This seems like it would be a breaking change - I don't actually know if this attribute works in a Dash app, we may be adding our elements too late in the page lifecycle for this to be honored, but even if it doesn't work we shouldn't break an app that already includes it. More broadly, I don't like the fact that in every PR our tests are at the mercy of MDN's changes, we should really make "update the HTML spec from MDN" an optional thing that we do occasionally, maybe when we're updating dependencies or maybe even less frequently. @T4rk1n thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should change the generation to be more stable. The test allow us to see there is change, but maybe it should be a CI job that run once a month or so and create a PR if there is change. An alternative could be to change the scraper and instead use the React types that are contained in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the changes to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'll need to address this prior to a release regardless, as that process will call the full rebuild. But yeah for the sake of this PR we can ignore it. |
||
"elements": [ | ||
"button", | ||
"input", | ||
"select", | ||
"textarea" | ||
], | ||
"description": "The element should be automatically focused after the page loaded." | ||
}, | ||
"autoPlay": { | ||
"elements": [ | ||
"audio", | ||
|
@@ -760,7 +751,6 @@ | |
"accept", | ||
"alt", | ||
"autoComplete", | ||
"autoFocus", | ||
"capture", | ||
"checked", | ||
"disabled", | ||
|
@@ -848,7 +838,6 @@ | |
], | ||
"select": [ | ||
"autoComplete", | ||
"autoFocus", | ||
"disabled", | ||
"form", | ||
"multiple", | ||
|
@@ -858,7 +847,6 @@ | |
], | ||
"textarea": [ | ||
"autoComplete", | ||
"autoFocus", | ||
"cols", | ||
"disabled", | ||
"form", | ||
|
@@ -872,19 +860,6 @@ | |
"rows", | ||
"wrap" | ||
], | ||
"button": [ | ||
"autoFocus", | ||
"disabled", | ||
"form", | ||
"formAction", | ||
"formEncType", | ||
"formMethod", | ||
"formNoValidate", | ||
"formTarget", | ||
"name", | ||
"type", | ||
"value" | ||
], | ||
"audio": [ | ||
"autoPlay", | ||
"controls", | ||
|
@@ -967,6 +942,18 @@ | |
"src", | ||
"srcLang" | ||
], | ||
"button": [ | ||
"disabled", | ||
"form", | ||
"formAction", | ||
"formEncType", | ||
"formMethod", | ||
"formNoValidate", | ||
"formTarget", | ||
"name", | ||
"type", | ||
"value" | ||
], | ||
"fieldset": [ | ||
"disabled", | ||
"form", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI we use this a lot but I'd love to get rid of this
...omit
pattern pretty much wherever we use it. It causes various problems, like I bet we're currently improperly forwardingpersistence
/persistence_type
/persisted_props
here, and some other places we still forwardloading_state
so the DOM ends up with `loading_state="[object Object]". Instead we should figure out which props we DO want and pick them, or just individually forward them. I thought I had made an issue for this but not seeing it now 🤔