-
Notifications
You must be signed in to change notification settings - Fork 116
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
Create blockquote #4168
Create blockquote #4168
Conversation
PixeledCode
commented
Nov 21, 2024
•
edited
Loading
edited
- Add Blockquote component
- Add Blockquote Icon
- Update Box component
Run & review this pull request in StackBlitz Codeflow. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit fd6a26b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Size Change: +1.7 kB (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
🦋 Changeset detectedLatest commit: fd6a26b The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
b6a39e5
to
d145b7b
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit fd6a26b:
|
Paste Run #9108
Run Properties:
|
Project |
Paste
|
Branch Review |
create-blockquote
|
Run status |
Passed #9108
|
Run duration | 02m 06s |
Commit |
fd6a26bda6: Merge branch 'main' into create-blockquote
|
Committer | Nora Krantz |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
67
|
View all changes introduced in this branch ↗︎ |
97a3257
to
1d3f787
Compare
expect(blockquote).toBeDefined(); | ||
const text = screen.getByText("This is some text."); | ||
expect(text.nodeName).toBe("BLOCKQUOTE"); | ||
expect(text).toHaveAttribute("cite", "#"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
> | ||
<BlockquoteIcon element={`${element}_ICON`} decorative={true} color="colorTextIcon" /> | ||
<BlockquoteContext.Provider value={{ url }}> | ||
<Box element={`INNER_${element}`}>{children}</Box> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we decide whether this was needed? Does it do weird stuff because the parent is a flex container?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah exactly, it's needed for flex reasons, so I added a customization target and called it a day
Paste Run #9109
Run Properties:
|
Project |
Paste
|
Branch Review |
create-blockquote
|
Run status |
Passed #9109
|
Run duration | 06m 06s |
Commit |
eefe78c620 ℹ️: Merge fd6a26bda6933829214cdd06969693b0cdb2f35c into 42a4dcbf4f5f217fb77d06d0aa7f...
|
Committer | Shoaib Ahmed |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
125
|
View all changes introduced in this branch ↗︎ |