Skip to content

Commit afba8fc

Browse files
authored
Rating columns in tables now use a solid icons instead of unfilled. (#3434)
1 parent 377a489 commit afba8fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/gitbook/src/components/DocumentView/Table/RecordColumnValue.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
type DocumentBlockTable,
55
SiteInsightsLinkPosition,
66
} from '@gitbook/api';
7-
import { Icon } from '@gitbook/icons';
7+
import { Icon, IconStyle } from '@gitbook/icons';
88
import assertNever from 'assert-never';
99

1010
import { Checkbox } from '@/components/primitives';
@@ -98,6 +98,7 @@ export async function RecordColumnValue<Tag extends React.ElementType = 'div'>(
9898
<Icon
9999
key={i}
100100
icon="star"
101+
iconStyle={IconStyle.SharpSolid}
101102
className={tcls('size-[15px]', 'text-primary')}
102103
/>
103104
))}

packages/icons/src/Icon.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export type IconProps = React.SVGProps<SVGSVGElement> & {
1616
icon: IconName;
1717

1818
/**
19-
* Style of the icon to render.
20-
* @default 'solid'
19+
* Style of the icon to render. Defaults to the current icon style from the context.
2120
*/
2221
iconStyle?: IconStyle;
2322

0 commit comments

Comments
 (0)