Skip to content

Commit dd7ebdd

Browse files
fix: update activeClasses for TabItem components in SearchPane
fix: update activeClasses for TabItem components in SearchPane fix: improve formatting of TabItem components in SearchPane
1 parent 4220475 commit dd7ebdd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/search/SearchPane.svelte

+12-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@
123123

124124
<div class={`modal-pane flex flex-col justify-between md:w-96 ${cssClasses}`}>
125125
<Tabs tabStyle="underline" contentClass="pt-2 pb-4 bg-gray-50 rounded-lg dark:bg-black">
126-
<TabItem open title={$t('tabs.stops-and-stations')} on:click={handleTabSwitch}>
126+
<TabItem
127+
activeClasses="tab-container__item--active p-4"
128+
open
129+
title={$t('tabs.stops-and-stations')}
130+
on:click={handleTabSwitch}
131+
>
127132
<SearchField value={query} {handleSearchResults} />
128133

129134
{#if query}
@@ -182,7 +187,12 @@
182187
</TabItem>
183188

184189
{#if env.PUBLIC_OTP_SERVER_URL}
185-
<TabItem title={$t('tabs.plan_trip')} on:click={handlePlanTripTabClick} disabled={!mapLoaded}>
190+
<TabItem
191+
activeClasses="tab-container__item--active p-4"
192+
title={$t('tabs.plan_trip')}
193+
on:click={handlePlanTripTabClick}
194+
disabled={!mapLoaded}
195+
>
186196
<TripPlan {mapProvider} {handleTripPlan} />
187197
</TabItem>
188198
{/if}

0 commit comments

Comments
 (0)