Skip to content

Commit

Permalink
Updating Callouts to resolve following defects found in testing.
Browse files Browse the repository at this point in the history
- Icon does not start at top of the page with text.

Markdoc changes the order that CSS classes get applied to child elements compared to preexisting MDX approach so some changes are required to make sure the child elements style correctly.
- Child text does not receive colors.text style for some element types.
- Child text does not receive text-sm class in some cases.

The function applyTextStyles addresses this.
  • Loading branch information
nikomancy committed May 22, 2024
1 parent 16a2121 commit 97ca067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/next/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -617,4 +617,4 @@ td {

.admonition > :last-child {
margin-bottom: 0;
}
}

0 comments on commit 97ca067

Please sign in to comment.