@table-bro/native 1.1.0 → 1.2.0

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.
@@ -9,25 +9,37 @@
9
9
  * found in the LICENSE file at https://angular.dev/license
10
10
  */
11
11
 
12
+ // The box of the pseudo-element of the header below
13
+ .bro-sort-header {
14
+ position: relative;
15
+ }
16
+
17
+ // The header is as wide as its title and arrow, as a button, so its focus ring keeps to them: the native outline of the
18
+ // browser in the skin nv, the focus ring of Bootstrap in the skin bs
12
19
  .bro-sort-header-container {
13
20
  display: flex;
14
21
 
15
- align-items: center;
22
+ // The native outline of Safari takes in the boxes of the content, and the arrow, turned by its transform, gave it a
23
+ // step below the arrow: a header that clips its content has the outline of its own box. The arrow stays within
24
+ // the header, and the pseudo-element below is positioned by .bro-sort-header outside it, so the clip leaves both whole
25
+ overflow: hidden;
16
26
 
17
- // Needs to be reset since we don't want an outline around the inner
18
- // div which is focusable. We have our own alternate focus styling.
19
- outline: 0;
27
+ width: fit-content;
28
+ max-width: 100%;
29
+
30
+ align-items: center;
20
31
 
21
32
  letter-spacing: normal;
22
33
 
23
34
  cursor: pointer;
24
35
 
25
- // The focus from the keyboard shows a ring in the color of the title, inside the header: the cell component clips
26
- // what is outside it. A click shows no ring
27
- &:focus-visible {
28
- outline: 2px solid currentColor;
36
+ // A click on the whole width of the column sorts it, also beside the title
37
+ &::after {
38
+ content: "";
39
+
40
+ position: absolute;
29
41
 
30
- outline-offset: -2px;
42
+ inset: 0;
31
43
  }
32
44
  }
33
45
 
@@ -48,6 +60,9 @@
48
60
 
49
61
  .bro-sort-header-position-before {
50
62
  flex-direction: row-reverse;
63
+
64
+ // The arrow before the title keeps them at the end of the header
65
+ margin-inline-start: auto;
51
66
  }
52
67
 
53
68
  @keyframes _bro-sort-header-recently-cleared-ascending {