Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: semantic type badge color error

ObservedObserver09592a2fff7b
diff --git a/packages/graphic-walker/src/components/dataTable/index.tsx b/packages/graphic-walker/src/components/dataTable/index.tsx
index 146e61f8..25846845 100644
--- a/packages/graphic-walker/src/components/dataTable/index.tsx
+++ b/packages/graphic-walker/src/components/dataTable/index.tsx
@@ -138,7 +138,7 @@ const DataTable: React.FC<DataTableProps> = (props) => {
>
<span
className={
- "cursor-pointer inline-flex px-2.5 py-0.5 text-xs font-medium mt-1 rounded-full text-xs text-white " +
+ "cursor-pointer inline-flex px-2.5 py-0.5 text-xs font-medium mt-1 rounded-full text-xs " +
getSemanticColors(field)
}
>
diff --git a/packages/graphic-walker/src/fields/encodeFields/singleEncodeEditor.tsx b/packages/graphic-walker/src/fields/encodeFields/singleEncodeEditor.tsx
index 8fb3b810..53696fd2 100644
--- a/packages/graphic-walker/src/fields/encodeFields/singleEncodeEditor.tsx
+++ b/packages/graphic-walker/src/fields/encodeFields/singleEncodeEditor.tsx
@@ -36,7 +36,7 @@ const SingleEncodeEditor: React.FC<SingleEncodeEditorProps> = (props) => {
{channelItem && (
<DropdownSelect className="shrink grow static" buttonClassName="rounded-none" options={allFieldOptions} selectedKey={channelItem.fid} onSelect={(value) => {}} />
)}
- {!channelItem && <div className="p-1.5 bg-gray-50 shrink-0 grow-0 border border-gray-200 flex item-center justify-center grow text-gray-500">
+ {!channelItem && <div className="p-1.5 bg-gray-50 border border-gray-200 flex item-center justify-center grow text-gray-500">
<PlusSmallIcon className="w-4" />{t('actions.drop_field')}</div>}
</div>
);