Skip to content

Commit 5f229c8

Browse files
committed
use .tippy-box:not([data-theme])
1 parent a339477 commit 5f229c8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

web_src/js/components/ActivityHeatmap.vue

+3-7
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,14 @@ export default {
6868
/>
6969
</template>
7070
<style>
71-
/* A quick patch for vue3-calendar-heatmap's tooltip padding, to avoid conflicting with other tippy contents.
71+
/* A quick patch for vue3-calendar-heatmap's tooltip padding.
7272
At the moment we could only identify the tooltip by its transition property.
7373
https://github.com/razorness/vue3-calendar-heatmap/blob/955626176cb5dc3d3ead8120475c2e5e753cc392/src/components/CalendarHeatmap.vue#L202
7474
This selector should be replaced by a more specific one if the library adds a CSS class.
75-
TODO: Remove this after https://github.com/razorness/vue3-calendar-heatmap/pull/34 is merged and released,
76-
and then all styles could be merged into `.tippy-box` selector.
75+
TODO: Remove this after https://github.com/razorness/vue3-calendar-heatmap/pull/34 is merged and released.
7776
*/
78-
[data-tippy-root][style*="transition: transform 0.1s ease-out"] .tippy-box {
77+
.tippy-box:not([data-theme]) {
7978
border: none;
80-
}
81-
/* some styles are put on the tippy-content intentionally, otherwise there will be strange animations */
82-
[data-tippy-root][style*="transition: transform 0.1s ease-out"] .tippy-box .tippy-content {
8379
transition: none !important;
8480
padding: 0.5rem 1rem;
8581
background-color: var(--color-tooltip-bg);

0 commit comments

Comments
 (0)