-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Vue to latest and fix universal selector CSS
This commit updates the Vue package from v3.4.21 to v3.4.27. This version change addressed styling issues introduced by changes in CSS universal selector handling in Vue 3.4.22. The change that has caused this: - vuejs/core#10551 - vuejs/core#10548 - vuejs/core@54a6afa This commit fixes two main issues that this has led to: 1. Universal CSS selector causing 'Revert' buttons to stretch and truncate incorrectly. This is fixed by modifying selectors to apply styles more specifically, maintaining correct display of toggle buttons. 2. Universal `*` selector that's used to understand parent HTML structure causing information tooltip icons to be misaligned. This is fixed by replacing `*` with a new `InfoTooltipWrapper` component, which manages layout concerns more explicitly and maintainably.
- Loading branch information
1 parent
2390530
commit aae5434
Showing
9 changed files
with
308 additions
and
269 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...presentation/components/Code/CodeButtons/Save/RunInstructions/Help/InfoTooltipWrapper.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<span class="info-tooltip-wrapper"> | ||
<span> | ||
<slot /> | ||
</span> | ||
<span> | ||
<InfoTooltipInline> | ||
<slot name="info" /> | ||
</InfoTooltipInline> | ||
</span> | ||
</span> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import InfoTooltipInline from './InfoTooltipInline.vue'; | ||
export default defineComponent({ | ||
components: { | ||
InfoTooltipInline, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style lang="scss"> | ||
@use "@/presentation/assets/styles/main" as *; | ||
.info-tooltip-wrapper { | ||
display: flex; | ||
align-items: center; | ||
@include set-property-ch-value-with-fallback( | ||
$property: gap, | ||
$value-in-ch: 0.5, | ||
) | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.