Skip to content

Conversation

@Aslam97
Copy link
Member

@Aslam97 Aslam97 commented Nov 14, 2025

  • Added missing imports to the useColorHighlight()
  • Added mode parameter to the hook props table
  • Updated onApplied callback type to include mode parameter
  • Updated canColorHighlight() signature to include optional mode parameter
  • Added parameters table for canColorHighlight()
  • Updated isColorHighlightActive() signature: renamed color parameter to highlightColor and added optional mode parameter
  • Added usage examples for isColorHighlightActive()
  • Added new removeHighlight() utility function
  • Added new pickHighlightColorsByValue() utility function

@vercel
Copy link

vercel bot commented Nov 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
tiptap-docs Ready Ready Preview Comment Nov 14, 2025 2:58am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the documentation for the color highlight button component, adding comprehensive information about the new mode parameter that enables both mark and node-level highlighting. The documentation now includes complete parameter tables, usage examples, and documentation for two new utility functions.

Key Changes:

  • Added mode parameter support throughout the API (props, utilities, and callbacks)
  • Added missing imports to code examples for better clarity
  • Documented two new utility functions: removeHighlight() and pickHighlightColorsByValue()

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/content/ui-components/components/color-highlight-button.mdx Comprehensive documentation update including new mode parameter, parameter tables for utilities, usage examples, and two new utility function documentations
.changeset/fluffy-pugs-go.md Changeset documenting all the documentation updates made in this PR

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Aslam97 Aslam97 merged commit 906ccf1 into main Nov 24, 2025
9 checks passed
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