Skip to content

Commit d38d3a4

Browse files
committed
docs: fix shortcode color indicator
1 parent af82b09 commit d38d3a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/material/overrides/hooks/shortcodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ def _badge_color(icon: str, text: str = "", type: str = ""):
153153
bg2_dis = "none"
154154
if len( args ) > 1:
155155
bg1_clr = args[ 1 ]
156-
bg1_dis = "block"
156+
bg1_dis = "inline-block"
157157

158158
if len( args ) > 2:
159159
bg2_clr = args[ 2 ]
160-
bg2_dis = "block"
160+
bg2_dis = "inline-block"
161161

162162
classes = f"mdx-badge mdx-badge--{type}" if type else "mdx-badge"
163163
return "".join([

0 commit comments

Comments
 (0)