Skip to content

Commit 48da3e1

Browse files
Turn off contextual alternates in the terminal (#1841)
* Turn off contextual alternates in the terminal * Use updated design system to fix instead
1 parent a7532d9 commit 48da3e1

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎app/components/EquivalentCliCommand.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export default function EquivalentCliCommand({ command }: { command: string }) {
3232
</Button>
3333
<Modal isOpen={isOpen} onDismiss={handleDismiss} title="CLI command">
3434
<Modal.Section>
35-
{/* todo: fix the token to disable contextual alternates in the mono font */}
36-
<pre className="flex w-full rounded border px-4 py-3 !normal-case !tracking-normal text-mono-md bg-default border-secondary [font-feature-settings:_'calt'_off]">
35+
<pre className="flex w-full rounded border px-4 py-3 !normal-case !tracking-normal text-mono-md bg-default border-secondary">
3736
<div className="mr-2 select-none text-quaternary">$</div>
3837
{command}
3938
</pre>

‎app/components/Terminal.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const Terminal = ({ ws }: TerminalProps) => {
101101

102102
return (
103103
<>
104-
<div className="h-full w-[calc(100%-3rem)]" ref={terminalRef} />
104+
<div className="h-full w-[calc(100%-3rem)] text-mono-code" ref={terminalRef} />
105105
<div className="absolute right-0 top-0 space-y-2 text-secondary">
106106
<ScrollButton onClick={() => term?.scrollToTop()}>
107107
<DirectionUpIcon />

‎package-lock.json‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@floating-ui/react": "^0.26.0",
3535
"@headlessui/react": "^0.0.0-insiders.a9e8563",
36-
"@oxide/design-system": "^1.2.2",
36+
"@oxide/design-system": "^1.2.9",
3737
"@oxide/identicon": "0.0.4",
3838
"@radix-ui/react-dialog": "^1.0.3",
3939
"@radix-ui/react-dropdown-menu": "^2.0.4",

0 commit comments

Comments
 (0)