Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip Glitchy (#3753) #3914

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Tooltip Glitchy (#3753) #3914

merged 3 commits into from
Dec 8, 2023

Conversation

kikuomax
Copy link
Collaborator

@kikuomax kikuomax commented Dec 8, 2023

Fixes #

Proposed Changes

These commits might not be sufficient to fix the problem in #3753, because there was no reproduction code, and I was not able to watch the attached video. However, they fix as many problems as I could find on my machine (macOS/Safari, Chrome).

  • Correct the position of Tooltips appended to body by specifying the absolute position of the anchor element (tooltipEl) instead of the wrapper element
  • Update the position of Tooltips in response to resizing window and the parent element
  • Adjust the position of Tooltips after the Modal CSS transition completes if Tooltips are in a Modal
    • The position of Tooltips were slightly dislodged just after the Modal was opened

- Fixes the issue that `Tooltip` is shown at a place slightly shifted
  from the expected one when `appendToBody` is `true`, and `position` is
  "is-top" or "is-bottom". Specifies the absolute position of the anchor
  element (`tooltipEl`) instead of the `wrapper` element.

  See buefy#3753 (comment)
- Fixes the issue that `Tooltip` did not respond to resizing when it was
  appended to body. Observes changes in the sizes of windown and the
  immediate parent element. See the comment:
    - buefy#3753 (comment)
- Fixes the issue that a Tooltip was slightly dislodged when a Modal was
  just opened if the Tooltip was in the Modal and appended to body. This
  should have been caused by the CSS transition involving changes in the
  Modal size. Updates the position after the CSS transition of the
  closest `.animation-content` if such an element exists. See the
  comment:
    - buefy#3753 (comment)
Copy link

netlify bot commented Dec 8, 2023

Deploy Preview for buefy-org ready!

Name Link
🔨 Latest commit 89c5b6d
🔍 Latest deploy log https://app.netlify.com/sites/buefy-org/deploys/657273f08062ca0008b10a32
😎 Deploy Preview https://deploy-preview-3914--buefy-org.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kikuomax kikuomax merged commit 9f955f3 into buefy:dev Dec 8, 2023
5 checks passed
@kikuomax kikuomax deleted the tooltip-glitch branch December 8, 2023 05:47
kikuomax added a commit to kikuomax/buefy that referenced this pull request Jan 10, 2024
* fix(lib): tooltip layout (appendToBody)

- Fixes the issue that `Tooltip` is shown at a place slightly shifted
  from the expected one when `appendToBody` is `true`, and `position` is
  "is-top" or "is-bottom". Updates the absolute position of the anchor
  element (`tooltipEl`) instead of the `wrapper` element.

  See buefy#3753 (comment)

* fix(lib): Tooltip did not respond to resize

- Fixes the issue that `Tooltip` did not respond to resizing when it was
  appended to body. Observes changes in the sizes of windown and the
  immediate parent element. See the comment:
    - buefy#3753 (comment)

* fix(lib): Tooltip was dislodge when Modal opened

- Fixes the issue that a Tooltip was slightly dislodged when a Modal was
  just opened if the Tooltip was in the Modal and appended to body. This
  should have been caused by the CSS transition involving changes in the
  Modal size. Updates the position after the CSS transition of the
  closest `.animation-content` if such an element exists. See the
  comment:
    - buefy#3753 (comment)

Also fixes buefy#3065
kikuomax added a commit to kikuomax/buefy that referenced this pull request Feb 11, 2024
* fix(lib): tooltip layout (appendToBody)

- Fixes the issue that `Tooltip` is shown at a place slightly shifted
  from the expected one when `appendToBody` is `true`, and `position` is
  "is-top" or "is-bottom". Updates the absolute position of the anchor
  element (`tooltipEl`) instead of the `wrapper` element.

  See buefy#3753 (comment)

* fix(lib): Tooltip did not respond to resize

- Fixes the issue that `Tooltip` did not respond to resizing when it was
  appended to body. Observes changes in the sizes of windown and the
  immediate parent element. See the comment:
    - buefy#3753 (comment)

* fix(lib): Tooltip was dislodge when Modal opened

- Fixes the issue that a Tooltip was slightly dislodged when a Modal was
  just opened if the Tooltip was in the Modal and appended to body. This
  should have been caused by the CSS transition involving changes in the
  Modal size. Updates the position after the CSS transition of the
  closest `.animation-content` if such an element exists. See the
  comment:
    - buefy#3753 (comment)

Also fixes buefy#3065
kikuomax added a commit to ntohq/buefy-next that referenced this pull request Feb 12, 2024
* fix(lib): tooltip layout (appendToBody)

- Fixes the issue that `Tooltip` is shown at a place slightly shifted
  from the expected one when `appendToBody` is `true`, and `position` is
  "is-top" or "is-bottom". Updates the absolute position of the anchor
  element (`tooltipEl`) instead of the `wrapper` element.

  See buefy#3753 (comment)

* fix(lib): Tooltip did not respond to resize

- Fixes the issue that `Tooltip` did not respond to resizing when it was
  appended to body. Observes changes in the sizes of windown and the
  immediate parent element. See the comment:
    - buefy#3753 (comment)

* fix(lib): Tooltip was dislodge when Modal opened

- Fixes the issue that a Tooltip was slightly dislodged when a Modal was
  just opened if the Tooltip was in the Modal and appended to body. This
  should have been caused by the CSS transition involving changes in the
  Modal size. Updates the position after the CSS transition of the
  closest `.animation-content` if such an element exists. See the
  comment:
    - buefy#3753 (comment)

Also fixes buefy#3065
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip Glitchy Tooltip not shown when b-field label position is on-border
2 participants