| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
🦋 Changeset detectedLatest commit: 99ff953 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
✅ Deploy Preview for patternfly-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Sorry, something went wrong.
✅ Commitlint tests passed!More Info{
"valid": true,
"errors": [],
"warnings": [],
"input": "feat(text-input)!: port to `<pf-v6-text-input>`"
} |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
| --- | ||
| <form id="text-input-form"> | ||
| <label for="input">Name</label> | ||
| <pf-v6-text-input id="input" name="username" required></pf-v6-text-input> |
There was a problem hiding this comment.
The required attribute here does not block form submit. FACE validity stays valid until something calls checkValidity().
Sorry, something went wrong.
|
|
||
| #renderStatusIcon(): TemplateResult<1> | string { | ||
| if (this.#isInvalid && this.validated !== 'error') { | ||
| return html`<svg role="presentation" fill="currentColor" height="1em" width="1em" viewBox="0 0 512 512"><path d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"/></svg>`; |
There was a problem hiding this comment.
I'd prefer to see aria-hidden="true" here in place of role="presentation" just to make sure these SVGs are really hidden from AT. Here's more info on this hidden vs presentation stance.
Be sure to do it here and elsewhere in this PR (demos).
Sorry, something went wrong.
| <fieldset> | ||
| <legend>Invalid</legend> | ||
| <pf-v6-text-input id="invalid-input" | ||
| validated="error" |
There was a problem hiding this comment.
Our buddy Claude is saying this state is "visual only" and constraint validation never ran, so there's nothing to announce ala #status-message. Double check on that.
I would also consider renaming the <legend> to something like "Snowboards" so that, when using AT, we don't get confused when it might announce "invalid, text input, invalid" or something similar.
Also, do you think validated="error" is a necessary attribute? aria-invalid maps directly to the HTML required attribute. Is this being added so that users could intercept manually and display this state?
Sorry, something went wrong.
| </span> | ||
| <span id="status-message" | ||
| role="${ifDefined(this.#isInvalid ? 'alert' : undefined)}" | ||
| aria-live="${ifDefined(this.#isInvalid ? 'assertive' : undefined)}" |
There was a problem hiding this comment.
Since the line above sets role="alert", you do not need the aria-live="assertive" here. Source.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What I did
InternalsController fix (pfe-core)
Closes #3043
Intentional divergences from React
Testing Instructions
Notes to Reviewers