Draft
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
df1dfa2 to
b43cb59
Compare
Contributor
Member
Author
@atomiks I noticed. This is still WIP, not ready for review. I need to chat to docs-infra about the missing/broken stuff, but the idea is that there's full feature parity e.g. being able to highlight different words per line. |
2d501f4 to
1ce3822
Compare
aarongarciah
commented
Mar 25, 2026
| In order to open a dialog using a menu, control the dialog state and open it imperatively using the `onClick` handler on the menu item. | ||
|
|
||
| ```tsx {12-13,17-18,24-25,28-29} title="Connecting a dialog to a menu" | ||
| ```tsx title="Connecting a dialog to a menu" |
Member
Author
There was a problem hiding this comment.
Fixing the highlighted lines in this demo, and in Dialog and Menu as well since it's been broken since 5e474fe#diff-eb4681ff3f8398dcc2e093c4106508dcbdbd314339bb1ced876eab0b7e054633L59
aarongarciah
commented
Mar 25, 2026
| { | ||
| name: basename(path), | ||
| content, | ||
| prettyContent, |
aarongarciah
commented
Mar 25, 2026
Comment on lines
+50
to
+60
| figure: (props) => <figure className="MdFigure" {...props} />, | ||
| pre: ({ tabIndex, ...props }) => { | ||
| if ('data-precompute' in props) { | ||
| return ( | ||
| <CodeBlock.Root className="MdFigure"> | ||
| <CodeBlockPreComputed {...props} /> | ||
| </CodeBlock.Root> | ||
| ); | ||
| } | ||
|
|
||
| return <figure className="MdFigure" {...props} />; | ||
| return <CodeBlock.Pre {...props} />; |
Member
Author
There was a problem hiding this comment.
I need to double check these changes.
0a47d7d to
f6d867f
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


WIP - not ready for review
Preview: https://deploy-preview-4429--base-ui.netlify.app/react/handbook/animation
rehype-pretty-codeand custom Rehype plugins in favor of docs-infra Rehype plugins. This means we now only rely on PrettyLights CSS vars for syntax highlighting.shikidependency.TODO
@highlight-textdoesn't work when a line is already highlighted: the whole line getsdata-hl="strong"but the word is not marked e.g. preview, source@highlight-texte.g. preview, source (fixed in [docs-infra] Code Emphasis Fixes mui-public#1247)@highlight-text "handle={demoAlertDialog}"e.g. preview, source@highlight-text 'nativeButton="false"'e.g. preview, source@highlight-text ", 40px"e.g. preview ("SSR fallback" code block), source