Skip to content

Commit

Permalink
Merge pull request #2635 from salesforce-ux/fix/webkit-gradient
Browse files Browse the repository at this point in the history
fix(brand-band): webkit gradient fix
  • Loading branch information
brandonferrua authored Aug 2, 2017
2 parents e2dc9bc + a7b29d3 commit dd85217
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 2 deletions.
6 changes: 6 additions & 0 deletions design-tokens/brand/background-color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,11 @@ props:
type: string
BRAND_BAND_COLOR_BACKGROUND_PRIMARY:
value: '#AFC5DE'
BRAND_BAND_COLOR_BACKGROUND_PRIMARY_TRANSPARENT:
value: 'rgba(175,197,222,0)'
comment: 'These RGBA values need to be updated if BRAND_BAND_COLOR_BACKGROUND_PRIMARY changes, solves webkit bug'
BRAND_BAND_COLOR_BACKGROUND_SECONDARY:
value: '#205C9F'
BRAND_BAND_COLOR_BACKGROUND_SECONDARY_TRANSPARENT:
value: 'rgba(32,92,159,0)'
comment: 'These RGBA values need to be updated if BRAND_BAND_COLOR_BACKGROUND_SECONDARY changes, solves webkit bug'
1 change: 1 addition & 0 deletions design-tokens/s1-base-small.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license

imports:
- ./s1-base-small/border-radius.yml
- ./s1-base-small/box-shadow.yml
- ./s1-base-small/font-size.yml
- ./s1-base-small/font-weight.yml
11 changes: 11 additions & 0 deletions design-tokens/s1-base-small/border-radius.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
# Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license

global:
type: size
category: radius
cssProperties:
- 'border*radius'
props:
PAGE_HEADER_BORDER_RADIUS:
value: '0'
2 changes: 2 additions & 0 deletions design-tokens/s1-base-small/box-shadow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ global:
props:
CARD_SHADOW:
value: 'none'
PAGE_HEADER_SHADOW:
value: 'none'
6 changes: 6 additions & 0 deletions design-tokens/salesforce-skin/background-color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ props:
value: '{!PALETTE_GRAY_7}'
BRAND_BAND_COLOR_BACKGROUND_SECONDARY:
value: '{!PALETTE_GRAY_7}'
BRAND_BAND_COLOR_BACKGROUND_PRIMARY_TRANSPARENT:
value: 'rgba(176,173,171,0)'
comment: 'These RGBA values need to be updated if BRAND_BAND_COLOR_BACKGROUND_PRIMARY changes, solves webkit bug'
BRAND_BAND_COLOR_BACKGROUND_SECONDARY_TRANSPARENT:
value: 'rgba(176,173,171,0)'
comment: 'These RGBA values need to be updated if BRAND_BAND_COLOR_BACKGROUND_SECONDARY changes, solves webkit bug'
## DEFAULT
COLOR_BACKGROUND_PRIMARY:
value: '{!PALETTE_GRAY_2}'
Expand Down
2 changes: 2 additions & 0 deletions design-tokens/salesforce-skin/spacing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ props:
TABLE_CELL_SPACING:
value: '{!SPACING_XX_SMALL} {!SPACING_X_SMALL}'
## Card
CARD_SPACING_MARGIN:
value: '{!SPACING_SMALL}'
CARD_FOOTER_PADDING:
value: '{!SPACING_SMALL} {!SPACING_MEDIUM}'
4 changes: 2 additions & 2 deletions ui/components/brand-band/base/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
min-width: 983px;
background-image:
url($brand-band-default-image),
linear-gradient(to top, transparent 0, $brand-band-color-background-secondary);
linear-gradient(to top, $brand-band-color-background-secondary-transparent 0, $brand-band-color-background-secondary);
background-repeat: repeat-x;
background-position: top left;
}
Expand All @@ -44,7 +44,7 @@
top: 0;
width: 100%;
height: $brand-band-scrim-height;
background-image: linear-gradient(to bottom, transparent 60%, $page-color-background-primary);
background-image: linear-gradient(to bottom, $brand-band-color-background-primary-transparent 60%, $brand-band-color-background-primary);
}

&.slds-brand-band_cover {
Expand Down
4 changes: 4 additions & 0 deletions ui/components/brand-band/tokens/background-color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ props:
type: raw
BRAND_BAND_COLOR_BACKGROUND_PRIMARY:
value: 'transparent'
BRAND_BAND_COLOR_BACKGROUND_PRIMARY_TRANSPARENT:
value: 'transparent'
BRAND_BAND_COLOR_BACKGROUND_SECONDARY:
value: 'transparent'
BRAND_BAND_COLOR_BACKGROUND_SECONDARY_TRANSPARENT:
value: 'transparent'

0 comments on commit dd85217

Please sign in to comment.