فهرست منبع

fix(fixed-layout): trycatch label activated (#644)

xiamidaxia 5 ماه پیش
والد
کامیت
865b59e128
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      packages/materials/fixed-semi-materials/src/components/try-catch-collapse.tsx

+ 3 - 2
packages/materials/fixed-semi-materials/src/components/try-catch-collapse.tsx

@@ -83,7 +83,8 @@ function TryCatchCollapse(props: CustomLabelProps): JSX.Element {
             cursor: 'pointer',
             justifyContent: 'center',
             alignItems: 'center',
-            background: hoverActivated ? baseActivatedColor : baseColor,
+            background:
+              hoverActivated || activateData.lineActivated ? baseActivatedColor : baseColor,
           }}
           aria-hidden="true"
         >
@@ -137,7 +138,7 @@ function TryCatchCollapse(props: CustomLabelProps): JSX.Element {
         data-label-id={props.labelId}
         style={{
           fontSize: 12,
-          color: hoverActivated ? baseActivatedColor : baseColor,
+          color: hoverActivated || activateData.lineActivated ? baseActivatedColor : baseColor,
           textAlign: 'center',
           whiteSpace: 'nowrap',
           backgroundColor: 'var(--g-editor-background)',