-
Notifications
You must be signed in to change notification settings - Fork 869
[Emotion] Convert EuiText, EuiTextAlign, and EuiTextColor #5895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
019bbe2
Convert .euiText CSS to Emotion
cee-chen cad7f03
[misc] Fix EuiLink theme params to match other files
cee-chen cfc84c3
Convert constrainedWidth modifier CSS to Emotion
cee-chen dbce67a
Add `customScale` option to typography functions
cee-chen ec2cfd2
Add start of euiScaleText conversion + remove sizes class names
cee-chen 32cce3e
Convert more of euiScaleText, + add unit tests
cee-chen 969b33b
Convert more of euiScaleText + simplify `code` scale
cee-chen 2a5a25c
Convert remaining euiScaleText headings logic/math to JS
cee-chen b515f3b
Updoot millions of downstream snapshots/tests
cee-chen b9e149d
Convert remaining euiMarkDownFormat styling in _text.scss to its own …
cee-chen 2402762
Remove _text.scss
cee-chen 40bc9f6
Convert EuiTextAlign to Emotion
cee-chen 7d7ef9f
[EuiTextAlign] Opinionated: Remove className entirely
cee-chen 7b6281d
Convert EuiTextColor to Emotion
cee-chen d9d7546
[EuiTextColor] Opinionated: Remove classNames entirely
cee-chen 40c5f74
Update downstream snapshots
cee-chen 59d8695
Remove all EuiText Sass
cee-chen e66e8c1
Add changelog
cee-chen d95cb50
[PR feedback] EuiMarkdownFormat helper naming
cee-chen 4a8118b
[PR feedback] Fix `useEuiFontSize` code snippet w/ new options obj
cee-chen fa849f0
[PR feedback] functions/typography.ts param docblock
cee-chen 996bd06
[PR feedback] Restore $euiTextConstrainedMaxWidth
cee-chen 9dd2e92
Add optional `cloneElement` prop to all EuiText components
cee-chen e17f048
Update downstream snapshots from previous commit
cee-chen aa0b2e2
[Feedback] Clarify cloneElement prop documentation, specify default v…
cee-chen 78ebe1a
[PR feedback] Remove cloneElement prop from EuiText
cee-chen 5fa91e7
[EuiEmptyPrompt] Cleanup usage of EuiText
cfc1471
[PR feedback] docs/copy
cee-chen 978033f
[PR feedback] Snapshot hints
cee-chen c4d9d43
[PR feedback] Add wiki guidelines for emotion tests
cee-chen c7e0a1d
Fix EuiMarkdown border colors
cee-chen d14aaaa
[PR feedback] Copy
cee-chen 848de51
Rename euiTheme.colors.subdued to subduedText
cee-chen 9e62bac
[PR feedback] EuiText code/pre styles
constancecchen 32690fa
[PR feedback] euiTextConstrainedMaxWidth
constancecchen a1d2c18
[PR feedback] docblocks
cee-chen 141c85b
[PR feedback] useEuiFontSize code snippet formatting
cee-chen 1a9dd92
[PR feedback] Tweak code block background color
cee-chen e9c944f
[PR feedback] Misc style fixes/tweaks
cee-chen edc74ab
Add blockquote font as familySerif theme variable
cee-chen 49739f7
[PR feedback] Combine h2 margin styles with :not
cee-chen 02e0570
Squash various :first-child warnings created by Emotion
cee-chen bdbcc81
[PR feedback] :last-child margin bottom changes
cee-chen dc9975e
Update all downstream CSS snapshots
cee-chen cdf9d95
Merge remote-tracking branch 'upstream/main' into emotion/eui-text
cee-chen 69b8840
Update src/components/text/text.styles.ts
constancecchen 44e9e2f
[PR feedback] `font.familySerif` documentation
cee-chen b5cd186
Revert "[PR feedback] :last-child margin bottom changes"
cee-chen 0772116
Ensure margin top/bottoms are on the 4px grid / use euiSizes
cee-chen beff872
Merge remote-tracking branch 'upstream/main' into emotion/eui-text
cee-chen 4cc47cb
Fix underlying grid lines to 4px in Text scaling demo
bf79fe4
[PR feedback] Revert 996bd06
cee-chen f7c323a
[PR feedback] Add Emotion `euiTextColor-customColor` className
cee-chen 1af1c89
Merge branch 'main' into emotion/eui-text
cee-chen 9653bb6
Merge branch 'elastic:main' into emotion/eui-text
constancecchen 354566d
[PR feedback] changelog
constancecchen 30c1727
Merge branch 'main' into emotion/eui-text
cee-chen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,18 +1,10 @@ | ||
| // sass-lint:disable no-important | ||
| .guideDemo__textLines { | ||
| background-image: linear-gradient($euiFocusBackgroundColor 1px, transparent 1px); | ||
| background-size: 100% $euiFontSizeXS; | ||
| background-size: 100% $euiSizeXS; | ||
| background-position-y: -1px; | ||
|
|
||
| > * { | ||
| background-color: $euiColorHighlight; | ||
| } | ||
|
|
||
| &[class*='--small'] { | ||
| background-size: 100% $euiFontSizeS / 2; | ||
| } | ||
|
|
||
| &[class*='--extraSmall'] { | ||
| background-size: 100% $euiFontSizeXS / 2; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.