@stackoverflow/stacks 2.5.6 → 2.5.8
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/dist/components/popover/tooltip.d.ts +6 -0
- package/dist/css/stacks.css +4 -4
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +83 -72
- package/dist/js/stacks.min.js +1 -1
- package/lib/components/button/button.less +473 -473
- package/lib/components/input_textarea/input_textarea.less +2 -2
- package/lib/components/link/link.less +2 -2
- package/lib/components/popover/tooltip.ts +366 -343
- package/lib/components/sidebar-widget/sidebar-widget.less +257 -257
- package/lib/test/visual-test-utils.ts +63 -58
- package/package.json +115 -115
|
@@ -9,6 +9,7 @@ export declare class TooltipController extends BasePopoverController {
|
|
|
9
9
|
private boundHide;
|
|
10
10
|
private boundHideIfWithin;
|
|
11
11
|
private boundHideOnEscapeKeyEvent;
|
|
12
|
+
private boundHideIfNotFocused;
|
|
12
13
|
private boundClearActiveTimeout;
|
|
13
14
|
private activeTimeout;
|
|
14
15
|
/**
|
|
@@ -59,6 +60,11 @@ export declare class TooltipController extends BasePopoverController {
|
|
|
59
60
|
* @param event An event object from s-popover:shown
|
|
60
61
|
*/
|
|
61
62
|
private hideIfWithin;
|
|
63
|
+
/**
|
|
64
|
+
* Hides the tooltip if the focus is not on the popover element.
|
|
65
|
+
* @param event A focusout event object from the reference or popover element
|
|
66
|
+
*/
|
|
67
|
+
private hideIfNotFocused;
|
|
62
68
|
private hideOnEscapeKeyEvent;
|
|
63
69
|
/**
|
|
64
70
|
* Binds mouse events to show/hide on reference element hover
|
package/dist/css/stacks.css
CHANGED
|
@@ -2229,13 +2229,13 @@ fieldset[disabled] .s-textarea,
|
|
|
2229
2229
|
.is-readonly .s-textarea {
|
|
2230
2230
|
--_in-bg: var(--black-150);
|
|
2231
2231
|
--_in-bc: var(--bc-light);
|
|
2232
|
-
--_in-fc: var(--black-
|
|
2232
|
+
--_in-fc: var(--black-400);
|
|
2233
2233
|
}
|
|
2234
2234
|
body.theme-highcontrast .s-input[readonly],
|
|
2235
2235
|
body.theme-highcontrast .s-textarea[readonly],
|
|
2236
2236
|
body.theme-highcontrast .is-readonly .s-input,
|
|
2237
2237
|
body.theme-highcontrast .is-readonly .s-textarea {
|
|
2238
|
-
--_in-fc: var(--fc-
|
|
2238
|
+
--_in-fc: var(--fc-medium);
|
|
2239
2239
|
}
|
|
2240
2240
|
.has-error .s-input,
|
|
2241
2241
|
.has-error .s-textarea,
|
|
@@ -2581,13 +2581,13 @@ body.theme-highcontrast .s-label--status {
|
|
|
2581
2581
|
line-height: 0;
|
|
2582
2582
|
text-decoration: none !important;
|
|
2583
2583
|
}
|
|
2584
|
-
a:visited:not([class*="s-"]):not(.post-tag),
|
|
2584
|
+
a:visited:not([class*="s-"]):not(.post-tag):not(.badge):not(.badge-tag),
|
|
2585
2585
|
a:visited.s-link,
|
|
2586
2586
|
a:visited.s-sidebarwidget--action,
|
|
2587
2587
|
a:visited.s-user-card--link {
|
|
2588
2588
|
color: var(--_li-fc-visited);
|
|
2589
2589
|
}
|
|
2590
|
-
a:visited:not([class*="s-"]):not(.post-tag):hover,
|
|
2590
|
+
a:visited:not([class*="s-"]):not(.post-tag):not(.badge):not(.badge-tag):hover,
|
|
2591
2591
|
a:visited.s-link:hover,
|
|
2592
2592
|
a:visited.s-sidebarwidget--action:hover,
|
|
2593
2593
|
a:visited.s-user-card--link:hover {
|