Hi, I need help, how can I move my div outside the content of the modal window, I need the block with the inscription to be slightly higher than my modal sheet, but at the same time follow the changes in the height of the modal window
My modal component
import './TicketModal.css'
interface TicketModalProps {
open: boolean
data: any
onClose: () => void
}
const TicketModal: FC<TicketModalProps> = ({ open, onClose, data }) => {
return (
<IonModal
id="ticket_modal"
isOpen={open}
onDidDismiss={onClose}
initialBreakpoint={0.75}
breakpoints={[0, 0.25, 0.5, 0.75]}
>
<IonContent id="ticket_content">
<div className="bg-red-700 z-50 absolute w-full top-[2px] left-0">CONTENT</div>
</IonContent>
</IonModal>
)
}
export default TicketModal
CSS
ion-modal#ticket_modal{
--width:80%;
--border-radius:20px;
overflow: visible !important;
}
ion-modal#ticket_modal::part(handle){
display: none;
}
ion-modal#ticket_modal::part(backdrop){
overflow: visible !important;
}
ion-modal#ticket_modal::part(content){
overflow: visible;
mask-image:
radial-gradient(ellipse 50px 45px at left 50% , #0000 30px, #000 0),
radial-gradient(ellipse 50px 45px at right 50%, #0000 30px, #000 0);
mask-composite: intersect;
}
ion-content#ticket_content{
--background: #ffdc1a;
}