Skip to content

Commit

Permalink
feat(PPDSC-2256): design review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenitsn committed Jul 26, 2022
1 parent 92d414d commit c3d0931
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 28 deletions.
2 changes: 0 additions & 2 deletions src/theme/__tests__/__snapshots__/theme.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2104,8 +2104,6 @@ Object {
},
"paragraph": Object {
"dropCap": Object {
"marginBlockStart": "space010",
"marginInlineEnd": "0.15em",
"paddingBlockEnd": Object {
"lg": "space040",
"md": "space030",
Expand Down
18 changes: 3 additions & 15 deletions src/theme/presets/typography-presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,23 +337,11 @@ typographyPresets.utilityButton030 = {

// Dropcap
typographyPresets.editorialDropCap010 = {
fontFamily: '{{fonts.fontFamily020.fontFamily}}',
fontSize: '{{fonts.fontSize120}}',
lineHeight: '{{fonts.fontLineHeight020}}',
fontWeight: '{{fonts.fontWeight020}}',
letterSpacing: '{{fonts.fontLetterSpacing030}}',
...typographyPresets.editorialDisplay010,
};
typographyPresets.editorialDropCap020 = {
fontFamily: '{{fonts.fontFamily020.fontFamily}}',
fontSize: '{{fonts.fontSize130}}',
lineHeight: '{{fonts.fontLineHeight020}}',
fontWeight: '{{fonts.fontWeight020}}',
letterSpacing: '{{fonts.fontLetterSpacing030}}',
...typographyPresets.editorialDisplay020,
};
typographyPresets.editorialDropCap030 = {
fontFamily: '{{fonts.fontFamily020.fontFamily}}',
fontSize: '{{fonts.fontSize140}}',
lineHeight: '{{fonts.fontLineHeight020}}',
fontWeight: '{{fonts.fontWeight020}}',
letterSpacing: '{{fonts.fontLetterSpacing030}}',
...typographyPresets.editorialDisplay030,
};
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ exports[`Paragraph renders with drop cap 1`] = `
.emotion-1 {
float: left;
color: #0A0A0A;
-webkit-margin-end: 0.15em;
margin-inline-end: 0.15em;
margin-block-start: 4px;
}
@media screen and (max-width: 767px) {
Expand Down Expand Up @@ -257,9 +254,6 @@ exports[`Paragraph renders with drop cap and complex children 1`] = `
.emotion-1 {
float: left;
color: #0A0A0A;
-webkit-margin-end: 0.15em;
margin-inline-end: 0.15em;
margin-block-start: 4px;
}
@media screen and (max-width: 767px) {
Expand Down Expand Up @@ -388,10 +382,7 @@ exports[`Paragraph renders with dropCap logical props 1`] = `
.emotion-1 {
float: left;
color: #0A0A0A;
-webkit-margin-end: 0.15em;
margin-inline-end: 0.15em;
margin-inline: 8px;
margin-block-start: 4px;
margin-block: 8px;
padding-inline: 8px;
padding-block: 8px;
Expand Down
2 changes: 0 additions & 2 deletions src/typography/paragraph/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export default {
md: 'space030',
lg: 'space040',
},
marginBlockStart: 'space010',
marginInlineEnd: '0.15em',
},
},
};

0 comments on commit c3d0931

Please sign in to comment.