Skip to content

Commit ae7848c

Browse files
committed
use gray bg highlighting for inline code in HTML content blocks
1 parent 134d8dd commit ae7848c

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2828
- `<ColorField />`
2929
- input component for colors
3030
- uses a subset from the configured color palette by default, but it also allows to enter custom colors
31+
- `<MultiSuggestField />`
32+
- `MultiSuggestFieldSelectionProps` provides `newlyRemoved` for callbacks set when removing a selected item
33+
- `<HtmlContentClock />`
34+
- inline `code` uses same gray background highlighting like code blocks
3135
- CSS custom properties
3236
- beside the color palette we now mirror the most important layout configuration variables as CSS custom properties
3337
- new icons:
3438
- `state-confirmed-all`
3539
- `state-declined-all`
36-
- `<MultiSuggestField />`
37-
- `MultiSuggestFieldSelectionProps` provides `newlyRemoved` for callbacks set when removing a selected item
3840

3941
### Fixed
4042

src/cmem/markdown/Markdown.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ This is a paragraph.
3636
* another line
3737
3. third item
3838
39-
This is a paragraph with a [text link](http://example.com/) and a footnote reference [^1].
39+
This is a paragraph with a [text link](http://example.com/), some \`inline code\`, and a footnote reference [^1].
4040
4141
## Headline level 2
4242
### Headline level 3
4343
#### Headline level 4
4444
##### Headline level 5
4545
###### Headline level 6
4646
47-
This is a code block.
47+
This is a code block.
4848
4949
\`\`\`
5050
another code block

src/components/Typography/typography.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,26 @@ html {
1313

1414
body {
1515
font-family: $eccgui-font-family-default;
16-
font-weight: $eccgui-font-weight-regular;
17-
text-rendering: optimizelegibility;
18-
-webkit-font-smoothing: antialiased;
19-
-moz-osx-font-smoothing: grayscale;
16+
2017
// User-facing text may contain Unicode symbols (e.g. "★") that fall outside the primary font stack.
2118
// Browsers pick different system fallback fonts for such characters, causing glyphs to render at
2219
// different optical sizes (smaller in Firefox). font-size-adjust normalises the fallback font size
2320
// by matching the primary font's x-height, reducing the visual size discrepancy across browsers.
2421
font-size-adjust: from-font;
22+
font-weight: $eccgui-font-weight-regular;
23+
text-rendering: optimizelegibility;
24+
-webkit-font-smoothing: antialiased;
25+
-moz-osx-font-smoothing: grayscale;
2526
}
2627

2728
code {
2829
font-family: $eccgui-font-family-monospace;
2930
font-size: 0.9em;
31+
32+
.#{$eccgui}-typography__contentblock &,
33+
&.#{$eccgui}-typography__text {
34+
background-color: $eccgui-color-workspace-background;
35+
}
3036
}
3137

3238
strong {

0 commit comments

Comments
 (0)