ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.11k stars 13.5k forks source link

feat(ion-modal): change .ion-handle top position #29966

Closed rbalet closed 2 weeks ago

rbalet commented 4 weeks ago

Prerequisites

Describe the Feature Request

I'd like to be able to change the ion-handle top position from 5px to 8px.

Describe the Use Case

Just UI decision

Describe Preferred Solution

being able to have a css variable available top: var(--ion-handle-top, 8px)

Describe Alternatives

Let me know the variable name and I can make a pull-request

Related Code

No response

Additional Information

No response

tanner-reits commented 2 weeks ago

@rbalet You should be able to do this using the exposed handle CSS part (all modal parts can be found in the docs).

.my-modal::part(handle) {
  top: 8px;
}