mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 16:06:02 +01:00
refactor(web): context button description class
This commit is contained in:
@@ -21,6 +21,9 @@ const useStyles = createStyles((theme, params: { disabled?: boolean }) => ({
|
|||||||
color: params.disabled ? theme.colors.dark[3] : theme.colors.dark[0],
|
color: params.disabled ? theme.colors.dark[3] : theme.colors.dark[0],
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
},
|
},
|
||||||
|
description: {
|
||||||
|
color: params.disabled ? theme.colors.dark[3] : theme.colors.dark[2]
|
||||||
|
},
|
||||||
dropdown: {
|
dropdown: {
|
||||||
padding: 10,
|
padding: 10,
|
||||||
color: theme.colors.dark[0],
|
color: theme.colors.dark[0],
|
||||||
@@ -67,7 +70,7 @@ const ContextButton: React.FC<{
|
|||||||
</Text>
|
</Text>
|
||||||
</Group>
|
</Group>
|
||||||
{button.description && (
|
{button.description && (
|
||||||
<Text size={12}>
|
<Text size={12} className={classes.description}>
|
||||||
<ReactMarkdown>{button.description}</ReactMarkdown>
|
<ReactMarkdown>{button.description}</ReactMarkdown>
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user