Disable accessible autocomplete overlay comments#8044
Merged
Conversation
3ad9646 to
9f839f8
Compare
Contributor
|
Netlify Draft Deployment |
Contributor
Hydration Benchmark Report (vs Baseline)✅ Top 5 Improvements (Best Speedups)
🔻 Flop 5 Regressions (Worst Slowdowns)
📋 Show all results
|
14123a4 to
986a1cf
Compare
91027d7 to
ccdbbf0
Compare
d1f1430 to
1fd74d9
Compare
ddc84cc to
ea1f567
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request modernizes the autoComplete property handling across all input components by introducing a new centralized AutoCompletePropType and validateAutoComplete function. The changes replace the deprecated InputTypeOnOff type with a more flexible type that supports both standard 'on'/'off' values and custom autocomplete strings, while establishing 'off' as the consistent default value.
Key changes include:
- Introduction of a centralized autocomplete validation system with
AutoCompletePropTypeandvalidateAutoCompletefunction - Replacement of
InputTypeOnOffwithAutoCompletePropTypeacross all input components (color, date, email, number, password, range, text) - Removal of hardcoded autocomplete defaults from component state in favor of prop-level defaults
Reviewed Changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/components/src/schema/props/auto-complete.ts | New centralized autocomplete validation and type definition |
| packages/components/src/schema/types/input/types.ts | Removal of deprecated InputTypeOnOff type |
| packages/components/src/components/*/shadow.tsx | Updated all input components to use new autocomplete type with 'off' default |
| packages/components/src/components/*/controller.ts | Refactored controllers to use centralized autocomplete validation |
| packages/components/src/components/form/shadow.tsx | Removed hardcoded autocomplete attribute from form element |
- Updated input components (color, date, email, number, password, range, text) to use a new AutoCompletePropType for handling auto-complete attributes. - Introduced a new schema for auto-complete properties and validation. - Removed deprecated InputTypeOnOff type and replaced it with the new auto-complete implementation. - Adjusted form elements to ensure proper handling of auto-complete attributes. - Updated snapshots and tests to reflect changes in auto-complete behavior.
ea1f567 to
b0980d1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to improve the handling of the
autoCompleteproperty across multiple input components in the codebase. The changes primarily focus on replacing theInputTypeOnOfftype with a newAutoCompletePropType, streamlining validation logic, and ensuring consistent default values for theautoCompleteproperty. Additionally, minor refactoring was performed to optimize imports and code organization.Updates to
autoCompleteProperty:Type Replacement: The
InputTypeOnOfftype was replaced withAutoCompletePropTypeacross all relevant input components (input-color,input-date,input-email,input-number,input-password). This new type better encapsulates the expected values forautoComplete. [1] [2] [3] [4] [5] [6]Validation Logic: Validation methods for the
autoCompleteproperty were updated to use a centralizedvalidateAutoCompletefunction. This improves code reuse and simplifies the validation process. [1] [2] [3] [4] [5] [6]Default Values: The
autoCompleteproperty now consistently defaults to'off'across all input components to disable browser autocomplete behavior by default. [1] [2] [3] [4]Code Refactoring:
Import Optimization: Redundant imports were removed, and the order of imports was adjusted for better readability and organization. For example, imports related to
nonceand functional components were reorganized ininput-color,input-date,input-email, andinput-numbercomponents. [1] [2] [3]Snapshot Updates: Snapshots for the
kol-formcomponent were updated to reflect the removal of theautoComplete="off"attribute from the<form>element, aligning with the changes in therenderFormElementmethod.These changes collectively enhance the maintainability and consistency of the codebase while ensuring better handling of the
autoCompleteproperty across components.