Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,10 @@
}
}

calcite-time-picker {
--calcite-time-picker-border-color: transparent;
--calcite-time-picker-corner-radius: var(--calcite-corner-radius-round);
}

@include form-validation-message();
@include base-component();
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,14 @@ export class InputTimePicker
focusTrapOptions={{ initialFocus: false }}
label={messages.chooseTime}
lang={this.messages._lang}
offsetDistance={0}
oncalcitePopoverBeforeClose={this.popoverBeforeCloseHandler}
oncalcitePopoverBeforeOpen={this.popoverBeforeOpenHandler}
oncalcitePopoverClose={this.popoverCloseHandler}
oncalcitePopoverOpen={this.popoverOpenHandler}
overlayPositioning={this.overlayPositioning}
placement={this.placement}
pointer-disabled={true}
ref={this.setCalcitePopoverEl}
referenceElement={this.containerEl}
triggerDisabled={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,10 @@ describe("calcite-time-picker", () => {
state: "hover",
shadowSelector: `.${CSS.input}`,
},
"--calcite-time-picker-border-color": {
targetProp: "borderColor",
shadowSelector: `.${CSS.timePicker}`,
},
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* These properties can be overridden using the component's tag as selector.
*
* @prop --calcite-time-picker-background-color: Specifies the background color of the time picker.
* @prop --calcite-time-picker-border-color: Specifies the border color of the time picker.
* @prop --calcite-time-picker-corner-radius: Specifies the border radius of the time picker.
* @prop --calcite-time-picker-button-background-color-hover: Specifies the button's background color when hovered or focused.
* @prop --calcite-time-picker-button-background-color-press: Specifies the button's background color when active.
Expand All @@ -19,11 +20,12 @@

.time-picker {
@apply flex
shadow-2
select-none
items-center
border-solid
border
font-medium;

border-color: var(--calcite-time-picker-border-color, var(--calcite-color-border-3));
border-radius: var(--calcite-time-picker-corner-radius, var(--calcite-border-radius-round));
color: var(--calcite-time-picker-color, var(--calcite-color-text-1));
background-color: var(--calcite-time-picker-background-color, var(--calcite-color-foreground-1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const timePickerTokens = {
calciteTimePickerIconColor: "",
calciteTimePickerInputBorderColorPress: "",
calciteTimePickerInputBorderColorHover: "",
calciteTimePickerBorderColor: "",
};

export const timePicker = html`<calcite-time-picker></calcite-time-picker>`;
Loading