mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Rating columns in tables now use a solid icons instead of unfilled. (#3434)
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
type DocumentBlockTable,
|
||||
SiteInsightsLinkPosition,
|
||||
} from '@gitbook/api';
|
||||
import { Icon } from '@gitbook/icons';
|
||||
import { Icon, IconStyle } from '@gitbook/icons';
|
||||
import assertNever from 'assert-never';
|
||||
|
||||
import { Checkbox } from '@/components/primitives';
|
||||
@@ -98,6 +98,7 @@ export async function RecordColumnValue<Tag extends React.ElementType = 'div'>(
|
||||
<Icon
|
||||
key={i}
|
||||
icon="star"
|
||||
iconStyle={IconStyle.SharpSolid}
|
||||
className={tcls('size-[15px]', 'text-primary')}
|
||||
/>
|
||||
))}
|
||||
|
||||
@@ -16,8 +16,7 @@ export type IconProps = React.SVGProps<SVGSVGElement> & {
|
||||
icon: IconName;
|
||||
|
||||
/**
|
||||
* Style of the icon to render.
|
||||
* @default 'solid'
|
||||
* Style of the icon to render. Defaults to the current icon style from the context.
|
||||
*/
|
||||
iconStyle?: IconStyle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user