Skip to content

Commit

Permalink
fix(grids): fix IE sizing issue by adding max-width
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonferrua committed Jul 20, 2017
1 parent e6d50b2 commit 00a0e35
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
10 changes: 10 additions & 0 deletions design-tokens/console-base/spacing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ global:
imports:
- ../force-base/aliases/spacing.yml
props:
## Globals
COMPONENT_SPACING_MARGIN:
value: '{!SPACING_SMALL}'
COMPONENT_SPACING_PADDING:
value: '{!SPACING_SMALL}'
TEMPLATE_GUTTERS:
value: '{!SPACING_SMALL}'
TEMPLATE_PROFILE_GUTTERS:
value: '4rem {!SPACING_SMALL} {!SPACING_SMALL}'
## Old
CARD_SPACING_MEDIUM:
value: '{!SPACING_SMALL}'
CARD_SPACING_LARGE:
Expand Down
2 changes: 1 addition & 1 deletion design-tokens/salesforce-skin/border-color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ props:
COLOR_BORDER_BRAND_PRIMARY_ACTIVE:
value: '{!BLUE_BORDER_SECONDARY}'
PAGE_HEADER_COLOR_BORDER:
value: '{!PALETTE_GRAY_2}'
value: '{!PALETTE_GRAY_6}'
CARD_COLOR_BORDER:
value: '{!PALETTE_GRAY_6}'
CARD_FOOTER_COLOR_BORDER:
Expand Down
2 changes: 0 additions & 2 deletions ui/components/cards/tokens/border-color.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ global:
- 'border*'
- box-shadow
imports:
- "../../../../design-tokens/force-base/aliases/color.yml"
- "../../../../design-tokens/salesforce-skin/aliases/color.yml"
- "../../../../design-tokens/color-palettes.yml"
props:
CARD_COLOR_BORDER:
Expand Down
13 changes: 1 addition & 12 deletions ui/components/page-headers/base/_blame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,9 @@
box-shadow: none;
}

/**
* @summary
*
* @selector .slds-has-full-bleed
* @restrict .slds-page-header
* @modifier
*/
.slds-page-header_bleed,
.slds-page-header.slds-has-full-bleed {
margin: 0;
}

// Overrides when inside a card
.slds-tabs_card .slds-page-header,
.slds-card .slds-page-header {
border: 0;
box-shadow: none;
}
1 change: 1 addition & 0 deletions ui/dependencies/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
.slds-#{$breakpoint-string}size--#{$i}-of-#{$denominator} {
width: ($i / $denominator) * 100%;
flex: 0 0 ($i / $denominator) * 100%;
max-width: ($i / $denominator) * 100%; // IE fix
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions ui/utilities/sizing/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ $_sizes: (
.slds-#{$size}-size_#{$name},
.slds-#{$size}-size--#{$name} {
width: $width;
flex: 0 0 $width;
max-width: $width; // IE fix
}
}

Expand Down Expand Up @@ -90,6 +92,8 @@ $_sizes: (
.slds-max-#{$size}-size_#{$name},
.slds-max-#{$size}-size--#{$name} {
width: $width;
flex: 0 0 $width;
max-width: $width; // IE fix
}
}

Expand Down

0 comments on commit 00a0e35

Please sign in to comment.