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: Ionic V8: Ion-Input Label Size CSS Custom Properties #29461

Open
3 tasks done
bkarv opened this issue May 4, 2024 · 1 comment
Open
3 tasks done

feat: Ionic V8: Ion-Input Label Size CSS Custom Properties #29461

bkarv opened this issue May 4, 2024 · 1 comment
Assignees
Labels
needs: reply the issue needs a response from the user

Comments

@bkarv
Copy link

bkarv commented May 4, 2024

Prerequisites

Describe the Feature Request

In ionic V8 new boiler template for ion-input where label is defined as part of ion-input, its now difficult to control the size of the label input. Requesting new CSS Custom Properties to set the size of the label.

<ion-input
[style.--label-size.px]="16"
  fill="outline"
  id="custom-input"
  label="Label Too Small"
  labelPlacement="floating"
></ion-input>

Describe the Use Case

There are situations where the label size can be way too small especially when using floating outline label.

For good accessibility being able to control the size of label would be great.

Screenshot 2024-05-04 at 5 22 11 pm

Describe Preferred Solution

new css property
--label-size

Please consider impact to floating outline label. Currently the JS notch function is a fixed scale. For proposed change this would need to be based on the label-size

Describe Alternatives

No response

Related Code

No response

Additional Information

Ionic Version 8

@ionitron-bot ionitron-bot bot added the triage label May 4, 2024
@bkarv bkarv changed the title feat: Ionic V8 CSS Custom Properties Label Size feat: Ionic V8 - Ion-Input CSS Custom Properties Label Size May 4, 2024
@bkarv bkarv changed the title feat: Ionic V8 - Ion-Input CSS Custom Properties Label Size feat: Ionic V8 - Ion-Input Label Size CSS Custom Properties May 4, 2024
@bkarv bkarv changed the title feat: Ionic V8 - Ion-Input Label Size CSS Custom Properties feat: Ionic V8: Ion-Input Label Size CSS Custom Properties May 4, 2024
@brandyscarney
Copy link
Member

Could you please provide an exact example of what you're trying to do so we can make sure the use case is covered? For example, what are you trying to set the label size to, and how does it look incorrect? Including code and screenshots of the problem are helpful. Thank you!

@brandyscarney brandyscarney added the needs: reply the issue needs a response from the user label May 15, 2024
@ionitron-bot ionitron-bot bot removed the triage label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: reply the issue needs a response from the user
Projects
None yet
Development

No branches or pull requests

2 participants