Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { merge } from 'lodash';
import { useMemo } from 'react';

import useUITheme from '../../theming/useUITheme';
import { blue, gray } from '../../../definitions/colors';
import { blue, gray, mutedBlue } from '../../../definitions/colors';
import SwissArmyButton from '../SwissArmyButton';
import {
ButtonStyleSpec,
Expand Down Expand Up @@ -100,3 +100,26 @@ export default function FloatingButton({
/>
);
}

export const FloatingButtonWDKStyle: ButtonStyleSpec = {
default: {
color: 'transparent',
textColor: '#069',
fontWeight: 600,
},
hover: {
color: mutedBlue[100],
textColor: '#069',
fontWeight: 600,
},
pressed: {
color: mutedBlue[200],
textColor: '#069',
fontWeight: 600,
},
disabled: {
color: 'transparent',
textColor: gray[500],
fontWeight: 600,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { merge } from 'lodash';
import { useMemo } from 'react';

import useUITheme from '../../theming/useUITheme';
import { blue, gray } from '../../../definitions/colors';
import { blue, gray, mutedBlue } from '../../../definitions/colors';
import SwissArmyButton from '../SwissArmyButton';
import {
ButtonStyleSpec,
Expand Down Expand Up @@ -133,3 +133,51 @@ export default function OutlinedButton({
/>
);
}

// Styled for use in the wdk
export const OutlinedButtonWDKStyle = {
default: {
textColor: '#0F86C1',
fontWeight: 600,
color: 'transparent',
border: {
radius: 5,
color: '#0F86C1',
style: 'solid',
width: 2,
},
},
hover: {
textColor: mutedBlue[600],
fontWeight: 600,
color: 'transparent',
border: {
radius: 5,
color: mutedBlue[600],
style: 'solid',
width: 2,
},
},
pressed: {
textColor: mutedBlue[700],
fontWeight: 600,
color: 'transparent',
border: {
radius: 5,
color: mutedBlue[700],
style: 'solid',
width: 2,
},
},
disabled: {
textColor: gray[500],
fontWeight: 600,
color: 'transparent',
border: {
radius: 5,
color: gray[500],
style: 'solid',
width: 2,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
display: flex;
flex-direction: column;
gap: 0.5em;
padding-left: 1em;
padding-right: 1em;

> label {
Expand Down
Loading
Loading