Skip to content

Conversation

@OS-martacarlos
Copy link

Issue number: resolves internal


What is the current behavior?

Using the ionic theme, ion-input inside an ion-accordion , that require a scroll to focus, when clicked , it's text would shift

Screenshot 2025-04-04 at 12 32 22

After some troubleshooting, we identified this visual bug came from logic of addClone, which creates a clone of the input , in order for it to be focusable and working on iOS/Android (code here )

The cloned input has an additional class, cloned-input and, for the ionic theme, the @position mixin was causing the cloned input inset-inline-start to be 0, which meant it was not being placed exactly on top of the "OG" input

What is the new behavior?

There's no longer a visual bug on inputs inside accordions, when using the ionic theme

To fix it, we split the cloned-input class between the input.native and input.common scss files, where the @position mixin is only used in input.native

Does this introduce a breaking change?

  • Yes
  • No

Other information

  • Bug reproduction here
  • With this fix here

@OS-martacarlos OS-martacarlos added package: core @ionic/core package type: bug a confirmed bug report labels Apr 4, 2025
@OS-martacarlos OS-martacarlos self-assigned this Apr 4, 2025
@OS-martacarlos OS-martacarlos requested a review from a team as a code owner April 4, 2025 11:46
@vercel
Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 2:19pm

Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thetaPC thetaPC removed the request for review from christian-bromann April 4, 2025 17:49
@thetaPC thetaPC changed the title fix(input): apply position to cloned-input only for native themes fix(input): apply position to .cloned-input only for native themes Apr 4, 2025
@OS-martacarlos OS-martacarlos merged commit 97f96b4 into next Apr 7, 2025
48 checks passed
@OS-martacarlos OS-martacarlos deleted the ROU-11748 branch April 7, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package type: bug a confirmed bug report

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants