-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(input): label position and overflow is correct #26248
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
Merged
Merged
Changes from all commits
Commits
Show all changes
182 commits
Select commit
Hold shift + click to select a range
621dc13
feat(input): add new js and css props
liamdebeasi d24428c
chore(): copy updates
liamdebeasi 0402ae8
test(input): move old tests to legacy directory
liamdebeasi 7643d2d
feat(input): add legacy vs modern template rendering
liamdebeasi 259a3a2
refactor(form): add form controller
liamdebeasi a989e94
chore(): update comments
liamdebeasi 2a80a5f
chore(): update tests
liamdebeasi 08ea3a0
chore(): add moved screenshots
liamdebeasi bd80054
chore(): add moved screenshots
liamdebeasi 19f4994
chore(): fix test file
liamdebeasi d02c144
chore(): prettier
liamdebeasi cea5615
feat(input): add base functionality and tests
liamdebeasi 8d7f0c4
feat(input): add missing fixed label
liamdebeasi 6eabc11
feat(input): add basic help text rendering
liamdebeasi 0259004
feat(input): add helper and error text
liamdebeasi 5f765a0
chore(): update descriptions for clarity
liamdebeasi 3e4f70c
test(input): make sure correct content is rendered
liamdebeasi 232d868
test(input): make sure error color can be customized
liamdebeasi 2f6019b
chore(): update test
liamdebeasi 5c3bb0c
chore(): add updated snapshots
Ionitron f8dc97f
refactor(item): deprecate helper and error slots
liamdebeasi 23af9da
Merge branch '2591-helper' of https://github.com/ionic-team/ionic-fra…
liamdebeasi eeb7124
feat(input): add counter support
liamdebeasi b9da66c
refactor(item): deprecate counter and counterFormatter
liamdebeasi 516a615
chore(): a few tweaks
liamdebeasi 2d07367
test(input): clean up tests
liamdebeasi 4a4aca7
Merge remote-tracking branch 'origin/2591-helper' into 2591-counter
liamdebeasi f855134
test(input): add counter tests
liamdebeasi a7e4426
chore(): update prop description
liamdebeasi fff8ed1
Merge remote-tracking branch 'origin/FW-2591' into 2591-props
liamdebeasi 563f177
Update core/src/components/input/input.tsx
liamdebeasi e1696af
chore(): run build
liamdebeasi a17a9ae
Merge remote-tracking branch 'origin/2591-props' into 2591-template
liamdebeasi b458fe7
Merge remote-tracking branch 'origin/2591-template' into 2591-base
liamdebeasi eace2ec
Merge branch '2591-base' into 2591-helper
liamdebeasi 8be3a58
Merge remote-tracking branch 'origin/2591-helper' into 2591-counter
liamdebeasi f556aee
chore(input): remove justify property
liamdebeasi f65f289
chore(): add updated snapshots
Ionitron e93d734
feat(input): add wip placement
liamdebeasi 71cec98
chore(): clean up styles
liamdebeasi 3a2e063
test(input): add label placement to a11y test
liamdebeasi d3d10db
test(input): add label placement template
liamdebeasi 9ac44c1
fix(input): adjust input sizing for platform specs
liamdebeasi b2f5879
test(input): add tests for label placement
liamdebeasi 55092f1
Merge remote-tracking branch 'origin/2591-counter' into 2591-placement
liamdebeasi 661be60
chore(): add updated snapshots
Ionitron 786e3ea
test(input): add base fill html
liamdebeasi 6b8131a
Update core/src/components/input/input.tsx
liamdebeasi e0b5cd6
feat(input): add missing fill property
liamdebeasi 5a0f812
refactor(): explicitly add element type
liamdebeasi 2bf7b10
test(input): mask test uses new syntax
liamdebeasi 1cc337a
refactor(input): access props once
liamdebeasi 9f04dd1
Merge branch '2591-base' into 2591-helper
liamdebeasi 4272366
chore(): fix el type
liamdebeasi 6d09ad6
Merge remote-tracking branch 'origin/2591-props' into 2591-template
liamdebeasi 9632c22
Merge remote-tracking branch 'origin/2591-template' into 2591-base
liamdebeasi 79ff704
Merge remote-tracking branch 'origin/2591-base' into 2591-helper
liamdebeasi aa7edae
Merge remote-tracking branch 'origin/2591-helper' into 2591-counter
liamdebeasi 15b1ab6
chore(): sync
liamdebeasi 40e2e54
Merge remote-tracking branch 'origin/2591-placement' into 2591-fill
liamdebeasi fe20efa
feat(input): add base solid + shape implementation
liamdebeasi 7670a27
chore(): padding is set on wrapper
liamdebeasi 0a66283
chore(): use mixin
liamdebeasi 9d13fbe
Merge remote-tracking branch 'origin/2591-placement' into 2591-fill
liamdebeasi 3408223
fix(input): padding applied to input wrapper
liamdebeasi 21f32a1
chore(): sync
liamdebeasi 9d77a37
chore(): border radius is set on native input for legacy
liamdebeasi bf7d77c
fix(input): bottom is adjusted for padding
liamdebeasi c87f89b
chore(): add more examples
liamdebeasi 10d2af3
fix(input): fixed label does not have end margin
liamdebeasi d4ff322
Merge remote-tracking branch 'origin/2591-placement' into 2591-fill
liamdebeasi 056c4f4
chore(): test clean up
liamdebeasi 71a9bdb
chore(): deprecate fill and shape on item
liamdebeasi 9e1ce71
chore(): lint
liamdebeasi 18662d1
test(input): add solid tests
liamdebeasi db83b9f
chore(): lint
liamdebeasi 0dceaf6
chore(): add updated snapshots
Ionitron 629f189
refactor(input): label container is now rendered in separate fn
liamdebeasi f3582fa
test(input): add more outline examples
liamdebeasi cc209d5
feat(input): first pass at outline style
liamdebeasi 4af53c3
fix(input): shaped outline has correct padding
liamdebeasi 5406b62
test(input): add more examples
liamdebeasi 24626dc
chore(): update test file
liamdebeasi a6149ff
test(input): add outline tests
liamdebeasi 9c52ef7
fix(input): bottom input padding is now correct
liamdebeasi c7d26e9
test(input): update a11y test
liamdebeasi b619254
fix(input): resolve a11y issues with outline style
liamdebeasi 3803513
chore(): clean up, comments
liamdebeasi f1927bb
chore(): add updated snapshots
Ionitron e676edc
refactor(input): begin work on input taking up full container
liamdebeasi b167b01
Merge branch '2591-fill' of https://github.com/ionic-team/ionic-frame…
liamdebeasi 21820dd
Revert "chore(): add updated snapshots"
liamdebeasi 49c7563
refactor(input): move label class to host
liamdebeasi c4ad092
chore(): sync
liamdebeasi fbfd775
fix(input): inputs now take up full container
liamdebeasi a85ca3b
Revert "chore(): add updated snapshots"
liamdebeasi e58033b
fix(input): adjust size and label offset
liamdebeasi 7e9849a
Merge remote-tracking branch 'origin/2591-placement' into 2591-fill
liamdebeasi f2c6c42
chore(): add updated snapshots
Ionitron 04e17bb
chore(): add updated snapshots
Ionitron d825070
refactor(input): split css out into separate files, add comments
liamdebeasi 8bc3bc8
chore(): add empty line
liamdebeasi ea608fa
Merge branch '2591-fill' of https://github.com/ionic-team/ionic-frame…
liamdebeasi 6de0562
chore(): revert padding fix
liamdebeasi 474366a
Revert "chore(): add updated snapshots"
liamdebeasi 9ded038
Merge remote-tracking branch 'origin/2591-placement' into 2591-fill
liamdebeasi d5d1947
chore(): add updated snapshots
Ionitron 4e86dea
Revert "chore(): add updated snapshots"
liamdebeasi 26976e8
fix(input): remove bottom border from normal input
liamdebeasi a14c6b7
chore(): add updated snapshots
Ionitron 1584994
fix(input): outline border thickens on focus
liamdebeasi ecad98e
Merge branch '2591-fill' of https://github.com/ionic-team/ionic-frame…
liamdebeasi 64b53fc
Revert "chore(): add updated snapshots"
liamdebeasi 8be58c1
chore(): add initial examples
liamdebeasi 9f98f60
chore(): add updated snapshots
Ionitron 6edf8e6
feat(input): add base highlight styles for non outline input
liamdebeasi 74c1b10
fix(input): using color adjusts highlight, add valid/invalid
liamdebeasi ad86cef
fix(input): add outline styles
liamdebeasi d553d6b
test(input): add more highlight examples
liamdebeasi 817f3e0
fix(input): highlight and state now shows correctly on all inputs
liamdebeasi 11a64bf
chore(): lint
liamdebeasi 095724a
fix(input): validity only shows up after touch
liamdebeasi 149b980
fix(input): validation colors show up always after touch
liamdebeasi 1897a06
fix(input): account for label too
liamdebeasi 3f548fa
fix(input): move old styles to legacy
liamdebeasi b1bc5af
fix(input): outline appears on ios, animation is md
liamdebeasi 23bcf45
fix(input): fix highlight height
liamdebeasi fd6201d
fix(input): highlight only appears on MD
liamdebeasi 98754f1
fix(input): highlight styles moved to MD
liamdebeasi 8a2e998
chore(): fix typo
liamdebeasi 8144701
chore(): remove color for now
liamdebeasi d3b4eac
test(input): add screenshot tests
liamdebeasi 417a278
chore(): code clean up
liamdebeasi 2e2310c
chore(): add updated snapshots
Ionitron 42a13e7
Merge branch '2591-highlight' of https://github.com/ionic-team/ionic-…
liamdebeasi aee4c2e
test(input): add color layouts
liamdebeasi 7f5febf
fix(input): add per mode color
liamdebeasi cfc278f
fix(input): adjust color behavior
liamdebeasi 6d6c282
chore(): code cleanup
liamdebeasi 390bbb9
test(input): add color tests
liamdebeasi b0a897b
chore(): lint
liamdebeasi b1fc170
chore(): add updated snapshots
Ionitron 0808278
Merge branch '2591-color' of https://github.com/ionic-team/ionic-fram…
liamdebeasi c703e21
fix(input): fix clear button alignment
liamdebeasi 5bfd7f5
test(input): add more basic tests
liamdebeasi b1c015b
fix(input): clear button is rendered correctly
liamdebeasi 7855210
test(input): add bottom tests
liamdebeasi 7962be2
chore(): remove old file
liamdebeasi e6efffc
chore(): add item tests
liamdebeasi 9ec58f2
chore(item): add modern input class
liamdebeasi c572604
fix(item): remove end padding and overflow for modern input
liamdebeasi 34477ee
fix(input): adjust MD padding
liamdebeasi a853d4b
fix(input): fix md styles
liamdebeasi a3f8d78
chore(): update template
liamdebeasi eaecb89
test(input): add item tests
liamdebeasi dd84042
chore(): lint
liamdebeasi 186476c
chore(): add todos
liamdebeasi 2b509b3
chore(): add updated snapshots
Ionitron d9c606c
Merge branch '2591-tests' of https://github.com/ionic-team/ionic-fram…
liamdebeasi 0c85bb1
test(input): fix shape naming
liamdebeasi 570d4de
Revert "chore(): add updated snapshots"
liamdebeasi 6226556
chore(): add updated snapshots
Ionitron 802063d
chore(): sync
liamdebeasi eba2d07
Revert "chore(): add updated snapshots"
liamdebeasi c0d97b2
chore(): sync
liamdebeasi 8c8661a
chore(): add updated snapshots
Ionitron f6f37eb
Merge remote-tracking branch 'origin/FW-2591' into 2591-fill
liamdebeasi cb0a03a
Merge remote-tracking branch 'origin/2591-fill' into 2591-highlight
liamdebeasi 5a6fd9e
Merge remote-tracking branch 'origin/2591-highlight' into 2591-color
liamdebeasi 5114151
chore(): sync
liamdebeasi ae46029
fix(input): use padding on label instead of marge
liamdebeasi 5fdc4a7
fix(input): wrapper is label to avoid dead space
liamdebeasi 6dca13b
chore(): revert old commit
liamdebeasi 2639292
fix(input): label placement is correct
liamdebeasi 07b6608
fix(input): label selection focuses input with narrator
liamdebeasi e3e1687
test(input): check correct element
liamdebeasi bc91b37
chore(): add updated snapshots
Ionitron 23935db
fix(input): begin fixing notch adjustment
liamdebeasi 759d14c
Merge branch '2591-padding' of https://github.com/ionic-team/ionic-fr…
liamdebeasi e163059
Revert "fix(input): begin fixing notch adjustment"
liamdebeasi 637cef1
chore(): sync
liamdebeasi 4d6310d
chore(): fix test
liamdebeasi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,11 @@ test.describe('input: label placement end', () => { | |
}); | ||
|
||
test.describe('input: label placement fixed', () => { | ||
test('label should appear on the starting side of the input and have a fixed width', async ({ page }) => { | ||
test('label should appear on the starting side of the input, have a fixed width, and show ellipses', async ({ | ||
page, | ||
}) => { | ||
await page.setContent(` | ||
<ion-input label="Email" value="[email protected]" label-placement="fixed"></ion-input> | ||
<ion-input label="Email Email Email Email Email Email" value="[email protected]" label-placement="fixed"></ion-input> | ||
`); | ||
|
||
const input = page.locator('ion-input'); | ||
|
Binary file modified
BIN
+719 Bytes
(110%)
...nt/input.e2e.ts-snapshots/input-placement-fixed-ios-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+327 Bytes
(110%)
...t/input.e2e.ts-snapshots/input-placement-fixed-ios-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+346 Bytes
(100%)
...nt/input.e2e.ts-snapshots/input-placement-fixed-ios-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+655 Bytes
(110%)
...nt/input.e2e.ts-snapshots/input-placement-fixed-ios-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+430 Bytes
(110%)
...t/input.e2e.ts-snapshots/input-placement-fixed-ios-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+367 Bytes
(100%)
...nt/input.e2e.ts-snapshots/input-placement-fixed-ios-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+453 Bytes
(110%)
...ent/input.e2e.ts-snapshots/input-placement-fixed-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+381 Bytes
(110%)
...nt/input.e2e.ts-snapshots/input-placement-fixed-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+359 Bytes
(100%)
...ent/input.e2e.ts-snapshots/input-placement-fixed-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+433 Bytes
(100%)
...ent/input.e2e.ts-snapshots/input-placement-fixed-md-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+318 Bytes
(110%)
...nt/input.e2e.ts-snapshots/input-placement-fixed-md-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+399 Bytes
(100%)
...ent/input.e2e.ts-snapshots/input-placement-fixed-md-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Uh oh!
There was an error while loading. Please reload this page.