Skip to content

Update Date/Time Selector #793

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
4 changes: 3 additions & 1 deletion packages/trip-form/src/DateTimeSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function isInputTypeSupported(type: string): boolean {

const supportsDateTimeInputs = isInputTypeSupported("date") && isInputTypeSupported("time");

const buttonStyle = { backgroundColor: S.baseColor() || grey[700], border: "0px", borderRadius: "3px 0px 0px 3px", color: "white", height: "45px" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break up this long line


/**
* Reference date for parsing.
*/
Expand Down Expand Up @@ -216,7 +218,7 @@ export default function DateTimeSelector({
style={style}
baseColor={baseColor}
>
<Dropdown alignMenuLeft id="date-time-depart-arrive" text={departureOptions.find(opt => opt.type === departArrive).text} buttonStyle={{ backgroundColor: S.baseColor() || grey[700], borderRadius: "3px 0px 0px 3px", color: "white", height: "45px", border: "0px" }}>
<Dropdown alignMenuLeft id="date-time-depart-arrive" text={departureOptions.find(opt => opt.type === departArrive).text} buttonStyle={buttonStyle}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breakup this long line.

{departureOptions.map(opt => (
<button
aria-pressed={opt.type === departArrive}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ exports[`Trip Form Components/Advanced Mode Settings Buttons AdvancedModeSetting
</label>
</div>
</div>
<div class="styled__DropdownSelector-sc-122ziys-17 kiQdDP">
<div class="styled__DropdownSelector-sc-122ziys-16 jBvmxW">
<div>
<label for="id-query-param-busColor"
class="styled__SettingLabel-sc-122ziys-2 hlSjLd"
Expand Down
Loading