-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support style hierarchy and composition in StyleProvider
The OutputElementStyle's values map properties can now override the properties defined for the style identified by the parent key. A multi-level hierarchy of parent styles is supported. Style composition by using a comma-delimited list of parent keys is supported. The 'background-color', 'height', 'border-style', 'border-color' and 'border-width' properties are supported for time graph states. The 'symbol-type', 'color', 'height' and 'vertical-align' properties are supported for time graph annotations. The 'opacity' property and '-blend' modifier are supported for color styles. The '-factor' modifier is supported for number styles. Signed-off-by: Patrick Tasse <patrick.tasse@ericsson.com>
- Loading branch information
1 parent
4ad1e06
commit 2da8235
Showing
3 changed files
with
227 additions
and
43 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/react-components/src/components/data-providers/style-properties.ts
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const StyleProperties = { | ||
BACKGROUND_COLOR: 'background-color', | ||
BLEND: '-blend', | ||
BORDER_STYLE: 'border-style', | ||
BORDER_COLOR: 'border-color', | ||
BORDER_WIDTH: 'border-width', | ||
COLOR: 'color', | ||
FACTOR: '-factor', | ||
HEIGHT: 'height', | ||
OPACITY: 'opacity', | ||
SYMBOL_TYPE: 'symbol-type', | ||
VERTICAL_ALIGN: 'vertical-align' | ||
}; |
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