Skip to content
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

feat(input,textarea,select): add --highlight-height variable #29090

Merged
merged 7 commits into from
Mar 8, 2024

Conversation

sean-perkins
Copy link
Contributor

Issue number: Internal


What is the current behavior?

In v7, using the legacy syntax, the height of the highlight on an item could be adjusted using the --highlight-height variable. This variable was not added to input and therefore would not work using the modern syntax.

What is the new behavior?

Adds the --highlight-height variable to ion-input, ion-textarea and ion-select so that developers can customize this height in md mode. Since the highlight element is not added for ios mode, this variable won't do anything for ios. Note that this diverges from the v7 behavior, where setting --highlight-height enabled the highlight for ios. A design document outlining this has been proposed here: https://github.com/ionic-team/ionic-framework-design-documents/pull/252

Does this introduce a breaking change?

  • Yes
  • No

Other information

brandyscarney and others added 3 commits February 22, 2024 15:48
Issue number: internal

---------

## What is the current behavior?
In v7, using the legacy syntax, the height of the highlight on an item
could be adjusted using the `--highlight-height` variable. This variable
was not added to input and therefore would not work using the modern
syntax.

## What is the new behavior?
Adds the `--highlight-height` variable so that developers can customize
this height in `md` mode. Since the highlight element is not added for
`ios` mode, this variable won't do anything for `ios`. Note that this
diverges from the v7 behavior, where setting `--highlight-height`
enabled the highlight for `ios`. A design document outlining this has
been proposed here:
ionic-team/ionic-framework-design-documents#252

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

---------

Co-authored-by: ionitron <[email protected]>
Issue number: internal

---------

## What is the current behavior?
In v7, using the legacy syntax, the height of the highlight on an item
could be adjusted using the `--highlight-height` variable. This variable
was not added to textarea and therefore would not work using the modern
syntax.

## What is the new behavior?
Adds the `--highlight-height` variable so that developers can customize
this height in `md` mode. Since the highlight element is not added for
`ios` mode, this variable won't do anything for `ios`. Note that this
diverges from the v7 behavior, where setting `--highlight-height`
enabled the highlight for `ios`. A design document outlining this has
been proposed here:
ionic-team/ionic-framework-design-documents#252

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

---------

Co-authored-by: ionitron <[email protected]>
Issue number: internal

---------

## What is the current behavior?
In v7, using the legacy syntax, the height of the highlight on an item
could be adjusted using the `--highlight-height` variable. This variable
was not added to select and therefore would not work using the modern
syntax.

## What is the new behavior?
Adds the `--highlight-height` variable so that developers can customize
this height in `md` mode. Since the highlight element is not added for
`ios` mode, this variable won't do anything for `ios`. Note that this
diverges from the v7 behavior, where setting `--highlight-height`
enabled the highlight for `ios`. A design document outlining this has
been proposed here:
ionic-team/ionic-framework-design-documents#252

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

---------

Co-authored-by: ionitron <[email protected]>
@github-actions github-actions bot added the package: core @ionic/core package label Feb 26, 2024
@sean-perkins sean-perkins marked this pull request as ready for review February 27, 2024 16:34
@sean-perkins sean-perkins requested a review from a team as a code owner February 27, 2024 16:34
@sean-perkins sean-perkins requested review from thetaPC and brandyscarney and removed request for a team February 27, 2024 16:34
@sean-perkins
Copy link
Contributor Author

The individual feature PRs have been approved (by me). This PR is the combined branch of all the changes for input, textarea and select.

@brandyscarney brandyscarney removed their request for review March 4, 2024 16:08
@brandyscarney
Copy link
Member

Removing myself as a reviewer since I implemented the original PRs.

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

@brandyscarney brandyscarney merged commit 13b7f8a into feature-8.0 Mar 8, 2024
44 checks passed
@brandyscarney brandyscarney deleted the FW-5973 branch March 8, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants