Skip to content

Commit

Permalink
increase radius of badges
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Oct 10, 2023
1 parent 020c111 commit 03af7c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions generator/konfig-next-app/src/components/HttpMethodBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import {
Badge,
MantineColor,
MantineSize,
useMantineTheme,
} from '@mantine/core'
import { Badge, MantineColor } from '@mantine/core'
import type { HttpMethods } from 'konfig-lib'
import { HttpMethodsEnum } from 'konfig-lib/dist/forEachOperation'

export function HttpMethodBadge({ httpMethod }: { httpMethod: HttpMethods }) {
const theme = useMantineTheme()
return <Badge color={httpMethodColor(httpMethod)}>{httpMethod}</Badge>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function OperationParameter({
theme.colorScheme === 'dark'
? theme.colors.gray[9]
: theme.colors.gray[0],
borderRadius: theme.radius.md,
border: `1px solid ${
theme.colorScheme === 'dark'
? theme.colors.gray[8]
Expand Down
2 changes: 1 addition & 1 deletion generator/konfig-next-app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function App(props: AppProps) {
Badge: {
styles: (theme) => ({
root: {
borderRadius: theme.radius.xs,
borderRadius: theme.radius.md,
},
}),
defaultProps: (theme) => ({
Expand Down

0 comments on commit 03af7c2

Please sign in to comment.