Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed Feb 19, 2025
1 parent 361afd7 commit d07edf1
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/blocks/_pro/tab/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,19 +401,24 @@ export default function TabEdit(props) {
);
// Only proceed if activeTabBody is a valid element
if (activeTabBody) {
const activeTabBodyStyle = window.getComputedStyle(activeTabBody);
const activeTabBodyStyle =
window.getComputedStyle(activeTabBody);
if (
!e.currentTarget
.closest('.vk_tab')
.classList.contains('is-style-vk_tab_labels-line')
.classList.contains(
'is-style-vk_tab_labels-line'
)
) {
e.currentTarget.style.backgroundColor =
activeTabBodyStyle.borderTopColor || '';
}
}
e.currentTarget.classList.add('hovered-temp-active');
e.currentTarget.classList.add(
'hovered-temp-active'
);
}
}}
}}
onMouseOut={(e) => {
if (
!e.currentTarget.classList.contains(
Expand Down Expand Up @@ -451,19 +456,24 @@ export default function TabEdit(props) {
);
// activeTabBodyが存在する場合のみ、getComputedStyleを実行する
if (activeTabBody) {
const activeTabBodyStyle = window.getComputedStyle(activeTabBody);
const activeTabBodyStyle =
window.getComputedStyle(activeTabBody);
if (
!e.currentTarget
.closest('.vk_tab')
.classList.contains('is-style-vk_tab_labels-line')
.classList.contains(
'is-style-vk_tab_labels-line'
)
) {
e.currentTarget.style.backgroundColor =
activeTabBodyStyle.borderTopColor || '';
}
}
e.currentTarget.classList.add('hovered-temp-active');
e.currentTarget.classList.add(
'hovered-temp-active'
);
}
}}
}}
onBlur={(e) => {
if (
!e.currentTarget.classList.contains(
Expand Down

0 comments on commit d07edf1

Please sign in to comment.