@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
15 lines (14 loc) • 444 B
JavaScript
const getEditIconStyle = (theme, backgroundColor) => ({
position: "absolute",
color: theme.colors.gray[3],
height: theme.other.icon.sizes.md,
right: 12,
width: 24,
paddingLeft: 12,
// The 00 at the end of the background color adjusts the hex color's alpha value
background: `linear-gradient(90deg, ${backgroundColor}00 0%, ${backgroundColor} 50%)`
});
export {
getEditIconStyle
};
//# sourceMappingURL=getEditIconStyle.js.map