Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Accessibility fixes
Dave Earley4d58a14350ed
diff --git a/frontend/src/components/routes/ticket-widget/SelectTickets/index.tsx b/frontend/src/components/routes/ticket-widget/SelectTickets/index.tsxindex 094ec627c..df4732d36 100644--- a/frontend/src/components/routes/ticket-widget/SelectTickets/index.tsx+++ b/frontend/src/components/routes/ticket-widget/SelectTickets/index.tsx@@ -1,5 +1,16 @@import {t, Trans} from "@lingui/macro";-import {ActionIcon, Anchor, Button, Collapse, Group, Input, Modal, Spoiler, TextInput} from "@mantine/core";+import {+ ActionIcon,+ Anchor,+ Button,+ Collapse,+ Group,+ Input,+ Modal,+ Spoiler,+ TextInput,+ UnstyledButton+} from "@mantine/core";import {useNavigate, useParams} from "react-router-dom";import {useMutation, useQueryClient} from "@tanstack/react-query";import {notifications} from "@mantine/notifications";@@ -172,7 +183,6 @@ const SelectTickets = (props: SelectTicketsProps) => {}}, [props.promoCodeValid])-const populateFormValue = () => {const ticketValues: Array<TicketFormValue> = [];tickets?.forEach(ticket => {@@ -287,44 +297,46 @@ const SelectTickets = (props: SelectTicketsProps) => {.map((n) => n.toString());quantityRange.unshift("0");- const [opened, {toggle}] = useDisclosure(!ticket.start_collapsed);+ const [ticketIsCollapsed, {toggle: collapseTicket}] = useDisclosure(!ticket.start_collapsed);return (<div key={ticket.id} className={'hi-ticket-row'}><div className={'hi-title-row'}>- <div className={'hi-ticket-title'}>+ <UnstyledButton variant={'transparent'}+ className={'hi-ticket-title'}+ onClick={collapseTicket}+ ><h3>- <Anchor display={'flex'} underline={'false'} onClick={toggle}>- {ticket.title}-- <div className={'hi-ticket-title-metadata'}>- {(ticket.is_available && !!ticket.quantity_available) && (- <>- {ticket.quantity_available === Constants.INFINITE_TICKETS && (- <Trans>- Unlimited available- </Trans>- )}- {ticket.quantity_available !== Constants.INFINITE_TICKETS && (- <Trans>- {ticket.quantity_available} available- </Trans>- )}- </>+ {ticket.title}+ </h3>+ <div className={'hi-ticket-title-metadata'}>+ {(ticket.is_available && !!ticket.quantity_available) && (+ <>+ {ticket.quantity_available === Constants.INFINITE_TICKETS && (+ <Trans>+ Unlimited available+ </Trans>)}-- {(!ticket.is_available && ticket.type === 'TIERED') && (- <TicketAvailabilityMessage ticket={ticket} event={event}/>+ {ticket.quantity_available !== Constants.INFINITE_TICKETS && (+ <Trans>+ {ticket.quantity_available} available+ </Trans>)}+ </>+ )}- <span className={'hi-ticket-collapse-arrow'}>{opened ? '\u25BC' : '\u25B6'}</span>- </div>- </Anchor>- </h3>- </div>+ {(!ticket.is_available && ticket.type === 'TIERED') && (+ <TicketAvailabilityMessage ticket={ticket} event={event}/>+ )}++ <span className={'hi-ticket-collapse-arrow'}>+ {ticketIsCollapsed ? '\u25BC' : '\u25B6'}+ </span>+ </div>+ </UnstyledButton></div>- <Collapse in={opened} mt={20}>+ <Collapse in={ticketIsCollapsed} className={'hi-ticket-content'}><div className={'hi-price-tiers-rows'}><TieredPricingticketIndex={ticketIndex}diff --git a/frontend/src/styles/widget/default.scss b/frontend/src/styles/widget/default.scssindex 95a4181c1..09cc83d3c 100644--- a/frontend/src/styles/widget/default.scss+++ b/frontend/src/styles/widget/default.scss@@ -1,4 +1,3 @@-.full-height {height: 100vh;}@@ -22,7 +21,6 @@display: flex;flex-flow: column;border: 3px solid var(--widget-primary-color, var(--tk-secondary));- padding: 10px 20px;border-radius: 5px;.hi-ticket-description-row {@@ -36,6 +34,10 @@.hi-ticket-title {flex: 1;+ padding: 10px 20px;+ display: flex;+ justify-content: space-between;+ align-items: center;h3 {margin: 10px 0;@@ -51,12 +53,16 @@margin-left: 10px;}- margin-left: auto;+ margin-left: 5px;font-weight: normal;}}}+ .hi-ticket-content {+ padding: 10px 20px;+ }+.hi-price-tiers-rows {.ticketPrice {