Skip to content

chore: error nesting button #1790

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

Merged
merged 1 commit into from
Apr 16, 2025
Merged

chore: error nesting button #1790

merged 1 commit into from
Apr 16, 2025

Conversation

spartan-vutrannguyen
Copy link
Contributor

@spartan-vutrannguyen spartan-vutrannguyen commented Apr 16, 2025

Description

  • Fix error of nesting buttons

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

21381

Additional Notes


Important

Replace button with div in ZoomControls component to fix button nesting error.

  • Behavior:
    • Replace button with div in ZoomControls component to fix button nesting error in index.tsx.

This description was created by Ellipsis for 4d71a51. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 4d71a51 in 31 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 drafted comments based on config settings.
1. apps/studio/src/routes/editor/LayersPanel/ZoomControls/index.tsx:77
  • Draft comment:
    Good change replacing the outer button with a div to avoid nesting interactive elements.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
2. apps/studio/src/routes/editor/LayersPanel/ZoomControls/index.tsx:142
  • Draft comment:
    Closing tag updated to match the div container.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
3. apps/studio/src/routes/editor/LayersPanel/ZoomControls/index.tsx:77
  • Draft comment:
    Good change replacing the outer with a
    to prevent nested interactive elements. Ensure that the interactive behavior is maintained via the PopoverTrigger (which properly handles accessibility).
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
4. apps/studio/src/routes/editor/LayersPanel/ZoomControls/index.tsx:36
  • Draft comment:
    Typographical error: The variable 'lintedScale' on line 36 appears to be a typo. It should likely be renamed to 'clampedScale' to accurately reflect that it holds the clamped value of the new scale.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_VZDVj8a2kc1udeFz


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@Kitenite Kitenite merged commit afee570 into main Apr 16, 2025
@Kitenite Kitenite deleted the fix/error-nesting-button branch April 16, 2025 17:28
ml-delaurier pushed a commit to ml-delaurier/nolook that referenced this pull request Apr 23, 2025
zongkelong pushed a commit to zongkelong/coolook that referenced this pull request Apr 25, 2025
* 'main' of https://github.com/onlook-dev/onlook:
  use DomElementStyles (onlook-dev#1810)
  feat: Added file watcher & auto update modified opened files in Dev Tab (onlook-dev#1802)
  fix: border thickness hidden when setting border color from color picker (onlook-dev#1805)
  move overflow input (onlook-dev#1800)
  Added overflow option in the style panel (onlook-dev#1793)
  refactor: update images manager (onlook-dev#1784)
  chore: error nesting button (onlook-dev#1790)
  refactor: update naming for brand color (onlook-dev#1785)
  Tys toolbar v4 (onlook-dev#1786)
t1c1 pushed a commit to t1c1/onlookbotcodes that referenced this pull request Jun 5, 2025
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.

2 participants