Browse Source

fix(nc-gui): add outline for switch btn on focus visible

pull/8188/head
Ramesh Mane 3 months ago
parent
commit
8089dc9c61
  1. 6
      packages/nc-gui/assets/style.scss
  2. 7
      packages/nc-gui/components/smartsheet/Form.vue

6
packages/nc-gui/assets/style.scss

@ -794,3 +794,9 @@ svg.nc-virtual-cell-icon {
@apply text-gray-800;
}
}
// switch - on tab focus show outline
.ant-switch:focus-visible,
.ant-switch-checked:focus-visible {
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3366ff;
}

7
packages/nc-gui/components/smartsheet/Form.vue

@ -2028,13 +2028,6 @@ useEventListener(
}
}
}
.nc-form-wrapper {
.ant-switch:focus-visible,
.ant-switch-checked:focus-visible {
box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3366ff;
}
}
</style>
<style lang="scss">

Loading…
Cancel
Save