-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(components): adjust config fixture base stroke and position (#…
…14316) provides additional spacing between config fixtures by adding a stroke to the base SVG and adjusting positioning accordingly closes RAUT-867
- Loading branch information
1 parent
cb819ee
commit c897edd
Showing
7 changed files
with
105 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,49 @@ | ||
export const FIXTURE_HEIGHT = 106.0 | ||
export const SINGLE_SLOT_FIXTURE_WIDTH = 246.5 | ||
export const STAGING_AREA_FIXTURE_WIDTH = 318.5 | ||
import { css } from 'styled-components' | ||
|
||
import { COLORS } from '../../helix-design-system' | ||
import { ALIGN_CENTER, DISPLAY_FLEX, JUSTIFY_CENTER } from '../../styles' | ||
import { BORDERS, SPACING } from '../../ui-style-constants' | ||
|
||
/** | ||
* These are Flex deck configurator-only values to position a foreign object | ||
* Position is relative to deck definition slot positions and a custom stroke applied to the single slot fixture SVG | ||
*/ | ||
export const FIXTURE_HEIGHT = 102.0 | ||
export const SINGLE_SLOT_FIXTURE_WIDTH = 243.5 | ||
export const STAGING_AREA_FIXTURE_WIDTH = 314.5 | ||
|
||
export const COLUMN_1_X_ADJUSTMENT = -100 | ||
export const COLUMN_3_X_ADJUSTMENT = -15.5 | ||
export const Y_ADJUSTMENT = -8 | ||
|
||
export const STAGING_AREA_DISPLAY_NAME = 'Staging area' | ||
export const TRASH_BIN_DISPLAY_NAME = 'Trash bin' | ||
export const WASTE_CHUTE_DISPLAY_NAME = 'Waste chute' | ||
|
||
// common config styles for staging area, trash bin, waste chute | ||
export const CONFIG_STYLE_READ_ONLY = css` | ||
display: ${DISPLAY_FLEX}; | ||
align-items: ${ALIGN_CENTER}; | ||
background-color: ${COLORS.grey50}; | ||
border-radius: ${BORDERS.borderRadiusSize1}; | ||
color: ${COLORS.white}; | ||
grid-gap: ${SPACING.spacing8}; | ||
justify-content: ${JUSTIFY_CENTER}; | ||
width: 100%; | ||
` | ||
|
||
export const CONFIG_STYLE_EDITABLE = css` | ||
${CONFIG_STYLE_READ_ONLY} | ||
&:active { | ||
background-color: ${COLORS.grey60}; | ||
} | ||
&:hover { | ||
background-color: ${COLORS.grey55}; | ||
} | ||
&:focus-visible { | ||
border: 3px solid ${COLORS.blue50}; | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters