diff --git a/CHANGELOG.md b/CHANGELOG.md index d9e6d847..385c4ec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### 🐞 Fixes +- [#858](https://github.com/estruyf/vscode-front-matter/issues/858): Fix button styling on the data screen - [#860](https://github.com/estruyf/vscode-front-matter/issues/860): Fix typo on the data screen ## [10.4.1] - 2024-09-27 diff --git a/src/dashboardWebView/components/Common/Button.tsx b/src/dashboardWebView/components/Common/Button.tsx deleted file mode 100644 index 68384012..00000000 --- a/src/dashboardWebView/components/Common/Button.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import * as React from 'react'; - -export interface IButtonProps { - secondary?: boolean; - disabled?: boolean; - className?: string; - onClick: () => void; -} - -export const Button: React.FunctionComponent = ({ - onClick, - className, - disabled, - secondary, - children -}: React.PropsWithChildren) => { - - return ( - - ); -}; diff --git a/src/dashboardWebView/components/DataView/DataFormControls.tsx b/src/dashboardWebView/components/DataView/DataFormControls.tsx index d3b7dd94..88a2cad3 100644 --- a/src/dashboardWebView/components/DataView/DataFormControls.tsx +++ b/src/dashboardWebView/components/DataView/DataFormControls.tsx @@ -1,9 +1,9 @@ import * as React from 'react'; import { useForm } from 'uniforms'; -import { Button } from '../Common/Button'; import * as l10n from '@vscode/l10n'; import { LocalizationKey } from '../../../localization'; import { SubmitField } from '../../../components/uniforms-frontmatter'; +import { Button } from 'vscrui'; export interface IDataFormControlsProps { model: any | null; @@ -21,8 +21,8 @@ export const DataFormControls: React.FunctionComponent = diff --git a/src/dashboardWebView/components/TaxonomyView/TaxonomyTagging.tsx b/src/dashboardWebView/components/TaxonomyView/TaxonomyTagging.tsx index dbe719cd..0fe934b8 100644 --- a/src/dashboardWebView/components/TaxonomyView/TaxonomyTagging.tsx +++ b/src/dashboardWebView/components/TaxonomyView/TaxonomyTagging.tsx @@ -5,7 +5,7 @@ import { SettingsSelector } from '../../state'; import { getTaxonomyField } from '../../../helpers/getTaxonomyField'; import { Sorting } from '../../../helpers/Sorting'; import { ArrowLeftIcon, EyeIcon } from '@heroicons/react/24/outline'; -import { Button } from '../Common/Button'; +import { Button } from 'vscrui'; import { FilterInput } from './FilterInput'; import { useDebounce } from '../../../hooks/useDebounce'; import * as l10n from '@vscode/l10n'; @@ -229,8 +229,8 @@ export const TaxonomyTagging: React.FunctionComponent = (
- - + +
); diff --git a/src/dashboardWebView/styles.css b/src/dashboardWebView/styles.css index 0c830d85..52f37a6f 100644 --- a/src/dashboardWebView/styles.css +++ b/src/dashboardWebView/styles.css @@ -115,7 +115,9 @@ } input[type='submit'] { - @apply mt-4 inline-flex w-auto items-center rounded border border-transparent bg-[var(--frontmatter-button-background)] px-3 py-2 text-sm font-medium leading-4 text-[var(--vscode-button-foreground)]; + @apply mt-4 inline-flex w-auto items-center rounded-[2px] border border-transparent bg-[var(--frontmatter-button-background)] px-[11px] py-[4px] text-[var(--vscode-button-foreground)]; + font-family: var(--vscode-font-family); + font-size: var(--vscode-font-size, 13px); &:hover { @apply bg-[var(--frontmatter-button-hoverBackground)]; @@ -310,7 +312,7 @@ } input[type='submit'] { - @apply rounded text-vulcan-500; + @apply rounded-[2px] text-vulcan-500; } }