Skip to content

Commit

Permalink
restore api-field-name class (#2823)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyleschemmerling authored Jan 18, 2024
1 parent 85adfe4 commit f49c7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astro/src/components/api/APIField.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { name, description, type, required, optional, since, defaults, deprecated
{/* Note: if you use a description parameter instead of a body, you'll get a single-line version */}
{ renderif && <div class='border-t border-slate-300 dark:border-slate-800'>
<div class="flex flex-wrap mt-6 space-x-3 items-baseline">
<code>{ name }</code>
<code class="api-field-name">{ name }</code>
{ type && <span class="dark:text-gray-400 text-gray-500 text-sm pt-1">{type}</span> }
{ description && <span class="px-3">{description}</span> }
{ required && <span class="px-[6px] py-1 rounded-md text-orange-500 border-orange-500 border-2 dark:font-semibold font-bold uppercase text-xs dark:text-[10px]">required</span> }
Expand Down

0 comments on commit f49c7da

Please sign in to comment.