Skip to content

Commit 3a431c9

Browse files
peterwangsccipherlogs
authored andcommitted
[docs] Fix v4 docs <b> appearing in notifications (mui#41390)
1 parent 0a6c7c3 commit 3a431c9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

docs/notifications.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[
22
{
33
"id": 68,
4-
"title": "<b>Check out Base UI today</b> 💥",
4+
"title": "Check out Base UI today 💥",
55
"text": "Love Material UI, but don't need Material Design? Try Base UI, the new \"unstyled\" alternative. <a style=\"color: inherit;\" data-ga-event-category=\"Blog\" data-ga-event-action=\"notification\" data-ga-event-label=\"introducing-base-ui\" href=\"/blog/introducing-base-ui/\">Read more in this announcement</a>."
66
},
77
{
88
"id": 78,
9-
"title": "<b>MUI X v6.18.x and the latest improvements before the next major</b>",
9+
"title": "MUI X v6.18.x and the latest improvements before the next major",
1010
"text": "New stable components, polished features, better performance and more. Check out the details in our <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-x-end-v6\" href=\"https://mui.com/blog/mui-x-end-v6-features/\">recent blog post</a>."
1111
},
1212
{
1313
"id": 79,
14-
"title": "<b>A new Developer Survey is open</b>",
14+
"title": "A new Developer Survey is open",
1515
"text": "Take a few minutes to share your feedback and expectations in the <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-survey\" href=\"https://tally.so/r/3Ex4PN?source=docs-notification\">Developer Survey</a>."
1616
},
1717
{
1818
"id": 80,
19-
"title": "<b>MUI X v7.0.0-beta.0</b>",
19+
"title": "MUI X v7.0.0-beta.0",
2020
"text": "Featuring new components and multiple enhancements for both developers and end-users. Discover all the specifics in the <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-x-v7-beta\" href=\"https://mui.com/blog/mui-x-v7-beta/\">announcement blog post</a>."
2121
}
2222
]

docs/src/modules/components/Notifications.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,7 @@ export default function Notifications() {
231231
<React.Fragment key={message.id}>
232232
<ListItem alignItems="flex-start">
233233
<Typography gutterBottom>
234-
<span
235-
// eslint-disable-next-line react/no-danger
236-
dangerouslySetInnerHTML={{ __html: message.title }}
237-
/>
234+
<b>{message.title}</b>
238235
</Typography>
239236
<Typography gutterBottom variant="body2" color="text.secondary">
240237
<span

0 commit comments

Comments
 (0)