Skip to content

Commit

Permalink
ESY-6296 Code examples
Browse files Browse the repository at this point in the history
- updated design guide version
- use button icon
- updated css error color
  • Loading branch information
m-lilja committed Mar 5, 2024
1 parent e4dbc3c commit 0768cfe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ opengraph:
image: /image1.png
design_guide:
base_url: https://design.swedbankpay.com
version: 10.9.1
version: 10.10.1
search:
enabled: true
url: /search
Expand Down
4 changes: 1 addition & 3 deletions _includes/code-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

<p class="code-view-header">
{{ include.title}}
<button class="code-view-copy" aria-label="Copy content to clipboard" value='{{include.json}}' onclick='javascript:navigator.clipboard.writeText(this.value)'>
copy json
</button>
<button aria-describedby="tooltipCopy" class="code-view-copy tooltip" aria-label="Copy json to clipboard" value='{{include.json}}' onclick='javascript:navigator.clipboard.writeText(this.value)'><i class="at-clipboard small" aria-hidden="true"></i><div role="tooltip">Copy json to clipboard</div></button>
</p>
````http
{{include.header}}
Expand Down
4 changes: 4 additions & 0 deletions _sass/code-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@

.code-view-table {
border-radius: 0px;

pre {
margin-bottom: 0;
}
}
}
}
2 changes: 1 addition & 1 deletion assets/css/pygments-autumn.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #aaaaaa; font-style: italic } /* Comment */
.highlight .err { color: #E7F8D2; } /* Error */
.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
.highlight .k { color: #0000aa } /* Keyword */
.highlight .ch { color: #aaaaaa; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */
Expand Down

0 comments on commit 0768cfe

Please sign in to comment.