@xh/hoist 80.0.0-SNAPSHOT.1769011463076 → 80.0.0-SNAPSHOT.1769042542328

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
@@ -61,6 +61,8 @@
61
61
  CSS overrides with overrides to variables where possible.
62
62
  * Added new CSS variables `--xh-intent-danger-text-color` (and others). Consider using these when
63
63
  styling text with Hoist intent colors to enhance legibility in dark mode.
64
+ * Tweaked styling of `DashContainer` tab controls, adding a left border to the control surface and
65
+ improving the visibility of the tab overflow dropdown.
64
66
 
65
67
  ### 📚 Libraries
66
68
 
@@ -17,15 +17,17 @@ import {dashContainerContextMenu} from './DashContainerContextMenu';
17
17
  * @internal
18
18
  */
19
19
  export const dashContainerMenuButton = hoistCmp.factory({
20
+ className: 'xh-dash-container-menu-btn',
20
21
  model: null,
21
- render({stack, dashContainerModel}) {
22
+
23
+ render({stack, dashContainerModel, className}) {
22
24
  if (dashContainerModel.contentLocked || !dashContainerModel.showMenuButton) return null;
23
25
 
24
26
  return popover({
25
27
  position: Position.BOTTOM,
26
28
  item: button({
27
29
  icon: Icon.ellipsisVertical(),
28
- className: 'xh-dash-container-menu-btn'
30
+ className
29
31
  }),
30
32
  content: dashContainerContextMenu({stack, dashContainerModel})
31
33
  });
@@ -15,16 +15,6 @@
15
15
  background: rgba(0, 0, 0, 0.06);
16
16
  min-height: 25px;
17
17
 
18
- .xh-dash-container-add-button {
19
- padding: 5px;
20
- color: #999;
21
-
22
- &:hover {
23
- cursor: pointer;
24
- color: var(--xh-text-color);
25
- }
26
- }
27
-
28
18
  .lm_tabs {
29
19
  flex: 1;
30
20
  position: relative;
@@ -37,9 +27,21 @@
37
27
  display: flex;
38
28
  align-items: center;
39
29
 
30
+ // Add left border to visually structure the control area and help it stand out.
31
+ border-left: var(--xh-border-solid);
32
+ padding-left: 3px;
33
+
34
+ > li {
35
+ // Avoid muted opacity on controls - we want users to be able to see these.
36
+ opacity: 1;
37
+ }
38
+
40
39
  .lm_tabdropdown {
41
40
  &::before {
42
- color: var(--xh-button-text-color);
41
+ // Set warning intent on tab dropdown - this is a tiny V arrow icon that appears when a
42
+ // tabbed stack is too small to render all tabs. This is the only clue to the user that
43
+ // there are more widgets in the layout!
44
+ color: var(--xh-intent-primary-text-color);
43
45
  }
44
46
  }
45
47
  }
@@ -116,6 +118,7 @@
116
118
  border: none;
117
119
  margin: 0;
118
120
  height: 30px;
121
+ padding: 0 8px;
119
122
 
120
123
  &:hover {
121
124
  background-color: var(--xh-menu-item-highlight-bg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "80.0.0-SNAPSHOT.1769011463076",
3
+ "version": "80.0.0-SNAPSHOT.1769042542328",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",