@cloud-ru/ds-uikit-product-copy 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.1.3 (2026-09-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **FF-9025:** hide copyButton after click and when card is not hovered ([8c30e3a](https://github.com/cloud-ru-tech/snack-v2/commit/8c30e3a5fd7eb5fa9b0a230d95c5d041d26f2daf))
11
+
6
12
  ## 1.1.2 (2026-09-01)
7
13
 
8
14
  **Note:** Version bump only for package @ds/uikit-product-copy
@@ -31,6 +31,6 @@
31
31
  .copyLine[data-copy-button-hide-strategy=hover] .copyButton{
32
32
  display:none;
33
33
  }
34
- .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:focus-within .copyButton{
34
+ .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:has(:focus-visible) .copyButton{
35
35
  display:inline-flex;
36
36
  }
@@ -31,6 +31,6 @@
31
31
  .copyLine[data-copy-button-hide-strategy=hover] .copyButton{
32
32
  display:none;
33
33
  }
34
- .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:focus-within .copyButton{
34
+ .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:has(:focus-visible) .copyButton{
35
35
  display:inline-flex;
36
36
  }
@@ -31,6 +31,6 @@
31
31
  .copyLine[data-copy-button-hide-strategy=hover] .copyButton{
32
32
  display:none;
33
33
  }
34
- .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:focus-within .copyButton{
34
+ .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:has(:focus-visible) .copyButton{
35
35
  display:inline-flex;
36
36
  }
@@ -31,6 +31,6 @@
31
31
  .copyLine[data-copy-button-hide-strategy=hover] .copyButton{
32
32
  display:none;
33
33
  }
34
- .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:focus-within .copyButton{
34
+ .copyLine[data-copy-button-hide-strategy=hover]:hover .copyButton, .copyLine[data-copy-button-hide-strategy=hover]:has(:focus-visible) .copyButton{
35
35
  display:inline-flex;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-ru/ds-uikit-product-copy",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Пакет копирования значений в буфер — компоненты CopyButton и CopyLine с единой логикой clipboard и иконкой подтверждения.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,8 +35,11 @@
35
35
  display: none;
36
36
  }
37
37
 
38
+ // `:has(:focus-visible)`, а не `:focus-within` — клик по кнопке копирования оставляет
39
+ // на ней обычный `:focus` (не `:focus-visible`), и `:focus-within` держал кнопку
40
+ // видимой даже после того, как курсор уходит со строки.
38
41
  &:hover .copyButton,
39
- &:focus-within .copyButton {
42
+ &:has(:focus-visible) .copyButton {
40
43
  display: inline-flex;
41
44
  }
42
45
  }