Skip to content

Commit 70517d7

Browse files
committed
style: lint
1 parent 189cd92 commit 70517d7

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

core/src/components/button/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class Button implements ComponentInterface, AnchorInterface, ButtonInterf
221221
const rootNode = this.el.getRootNode();
222222
const shadowHost = rootNode instanceof ShadowRoot ? (rootNode as ShadowRoot).host : null;
223223

224-
this.inDatetime = !!this.el.closest('ion-datetime') || (shadowHost?.tagName === 'ION-DATETIME');
224+
this.inDatetime = !!this.el.closest('ion-datetime') || shadowHost?.tagName === 'ION-DATETIME';
225225
this.inButtons = !!this.el.closest('ion-buttons');
226226
this.inListHeader = !!this.el.closest('ion-list-header');
227227
this.inItem = !!this.el.closest('ion-item') || !!this.el.closest('ion-item-divider');

core/src/components/datetime/datetime.ionic.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253

254254
:host .datetime-buttons .datetime-action-buttons,
255255
.datetime-action-buttons .datetime-action-buttons-container,
256-
::slotted([slot="buttons"]), {
256+
::slotted([slot="buttons"]) {
257257
flex-flow: column;
258258
align-items: stretch;
259259
gap: globals.$ion-space-200;

core/src/components/datetime/datetime.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,11 +2192,7 @@ export class Datetime implements ComponentInterface {
21922192
</div>
21932193

21942194
<div class="calendar-next-prev">
2195-
<ion-button
2196-
aria-label="Previous month"
2197-
disabled={prevMonthDisabled}
2198-
onClick={() => this.prevMonth()}
2199-
>
2195+
<ion-button aria-label="Previous month" disabled={prevMonthDisabled} onClick={() => this.prevMonth()}>
22002196
<ion-icon
22012197
dir={hostDir}
22022198
aria-hidden="true"
@@ -2206,11 +2202,7 @@ export class Datetime implements ComponentInterface {
22062202
flipRtl
22072203
></ion-icon>
22082204
</ion-button>
2209-
<ion-button
2210-
aria-label="Next month"
2211-
disabled={nextMonthDisabled}
2212-
onClick={() => this.nextMonth()}
2213-
>
2205+
<ion-button aria-label="Next month" disabled={nextMonthDisabled} onClick={() => this.nextMonth()}>
22142206
<ion-icon
22152207
dir={hostDir}
22162208
aria-hidden="true"

0 commit comments

Comments
 (0)