Skip to content

Commit e615dca

Browse files
committed
fix: 個別対応が必要なコンポーネントのみ上書き
1 parent 55ac0e4 commit e615dca

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

packages/smarthr-ui/src/components/Calendar/Calendar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ type DayJsType = ReturnType<typeof dayjs>
4040
const classNameGenerator = tv({
4141
slots: {
4242
container:
43-
'smarthr-ui-Calendar shr-inline-block shr-overflow-hidden shr-rounded-m shr-bg-white shr-text-black shr-shadow-layer-3 forced-colors:shr-border-shorthand forced-colors:shr-shadow-none',
43+
'smarthr-ui-Calendar shr-overflow-hidden shr-inline-block shr-rounded-m shr-bg-white shr-text-black shr-shadow-layer-3 forced-colors:shr-border-shorthand forced-colors:shr-shadow-none',
4444
header: 'smarthr-ui-Calendar-header shr-border-b-shorthand shr-flex shr-items-center shr-p-1',
4545
yearMonth: 'smarthr-ui-Calendar-yearMonth shr-me-0.5 shr-text-base shr-font-bold',
4646
monthButtons: 'smarthr-ui-Calendar-monthButtons shr-ms-auto shr-flex',
4747
tableLayout: 'shr-relative',
4848
yearSelectButton:
49-
'smarthr-ui-Calendar-selectingYear [&[aria-expanded="true"]_.smarthr-ui-Icon]:shr-rotate-180',
49+
'smarthr-ui-Calendar-selectingYear focus-visible:shr-focus-indicator--outer [&[aria-expanded="true"]_.smarthr-ui-Icon]:shr-rotate-180',
5050
},
5151
})
5252

@@ -261,15 +261,15 @@ const MonthDirectionCluster = memo<{
261261
disabled={isSelectingYear || prev.isBefore(from, 'month')}
262262
onClick={onClickMonthPrev}
263263
size="s"
264-
className="smarthr-ui-Calendar-monthButtonPrev"
264+
className="smarthr-ui-Calendar-monthButtonPrev focus-visible:shr-focus-indicator--outer"
265265
>
266266
<FaChevronLeftIcon alt={previousMonthAltText} />
267267
</Button>
268268
<Button
269269
disabled={isSelectingYear || next.isAfter(to, 'month')}
270270
onClick={onClickMonthNext}
271271
size="s"
272-
className="smarthr-ui-Calendar-monthButtonNext"
272+
className="smarthr-ui-Calendar-monthButtonNext focus-visible:shr-focus-indicator--outer"
273273
>
274274
<FaChevronRightIcon alt={nextMonthAltText} />
275275
</Button>

packages/smarthr-ui/src/components/Calendar/YearPicker.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ const classNameGenerator = tv({
3535
slots: {
3636
overlay: 'smarthr-ui-YearPicker shr-absolute shr-inset-0 shr-bg-white',
3737
container:
38-
'shr-box-border shr-flex shr-h-full shr-w-full shr-flex-wrap shr-items-start shr-overflow-y-auto shr-px-0.25 shr-py-0.5',
38+
'shr-overflow-y-auto shr-box-border shr-flex shr-h-full shr-w-full shr-flex-wrap shr-items-start shr-px-0.25 shr-py-0.5',
3939
yearButton:
40-
'smarthr-ui-YearPicker-selectYear shr-group shr-flex shr-w-1/4 shr-items-center shr-justify-center shr-px-0 shr-py-0.5 shr-leading-none',
40+
'smarthr-ui-YearPicker-selectYear shr-group shr-flex shr-w-1/4 shr-items-center shr-justify-center shr-px-0 shr-py-0.5 shr-leading-none focus-visible:shr-outline-none',
4141
yearWrapper: [
42-
'shr-box-border shr-inline-block shr-rounded-full shr-px-0.75 shr-py-0.5 shr-text-base shr-leading-none group-hover:shr-bg-base-grey group-hover:shr-text-black',
42+
'shr-box-border shr-inline-block shr-rounded-full shr-px-0.75 shr-py-0.5 shr-text-base shr-leading-none group-focus-visible:shr-focus-indicator group-hover:shr-bg-base-grey group-hover:shr-text-black',
4343
'[[data-this-year="true"]>&]:shr-border-shorthand',
4444
'[[aria-pressed="true"]>&]:shr-bg-main [[aria-pressed="true"]>&]:shr-text-white',
4545
],

packages/smarthr-ui/src/components/Combobox/MultiCombobox/MultiSelectedItem.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ const classNameGenerator = tv({
4242
'smarthr-ui-MultiCombobox-deleteButton',
4343
'shr-group/deleteButton',
4444
'shr-shrink shr-rounded-full shr-leading-[0] shr-text-black',
45-
'focus-visible:shr-shadow-[unset]',
4645
],
4746
deleteButtonIcon:
48-
'group-focus-visible/deleteButton:shr-focus-indicator group-focus-visible/deleteButton:shr-rounded-full',
47+
'group-focus-visible/deleteButton:shr-focus-indicator--outer group-focus-visible/deleteButton:shr-rounded-full',
4948
},
5049
variants: {
5150
enableEllipsis: {

0 commit comments

Comments
 (0)