Skip to content

Commit 3f78178

Browse files
authored
fix: workspace sizes (carbon-design-system#1026)
1 parent cf3d947 commit 3f78178

File tree

18 files changed

+60
-77
lines changed

18 files changed

+60
-77
lines changed

demo/src/framework/demo-chat-version-switcher.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ export class VersionDropdown extends LitElement {
250250
<cds-dropdown
251251
title-text="Select @carbon/ai-chat version"
252252
helper-text="Changing will reset all other settings"
253-
size="sm"
254253
.value=${this.selectedValue}
255254
@cds-dropdown-selected=${this.handleChange}
256255
>

demo/src/react/WorkspaceWriteableElementExample.css

Lines changed: 0 additions & 10 deletions
This file was deleted.

demo/src/react/WorkspaceWriteableElementExample.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* @license
88
*/
99

10-
import "./WorkspaceWriteableElementExample.css"; // Assuming styles are in a separate CSS file
1110
import WorkspaceShell, {
1211
WorkspaceShellHeader,
1312
WorkspaceShellBody,

demo/src/web-components/workspace-writeable-element-example.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license
88
*/
99

10-
import { css, html, LitElement } from "lit";
10+
import { html, LitElement } from "lit";
1111
import { customElement, property } from "lit/decorators.js";
1212
import "@carbon/web-components/es/components/button/index.js";
1313
import { PanelType } from "@carbon/ai-chat";
@@ -31,12 +31,6 @@ import Edit16 from "@carbon/icons/es/edit/16.js";
3131

3232
@customElement("workspace-writeable-element-example")
3333
class WorkspaceWriteableElementExample extends LitElement {
34-
static styles = css`
35-
[slot="workspacePanelElement"] {
36-
block-size: 100%;
37-
}
38-
`;
39-
4034
@property({ type: String })
4135
accessor location: string = "";
4236

examples/web-components/workspace-sidebar/src/inventory-report-example.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ import Edit16 from "@carbon/icons/es/edit/16.js";
4545
@customElement("inventory-report-example")
4646
class InventoryReportExample extends LitElement {
4747
static styles = css`
48-
[slot="workspacePanelElement"] {
49-
block-size: 100%;
50-
}
5148
pre {
5249
background: #f4f4f4;
5350
padding: 1rem;

examples/web-components/workspace-sidebar/src/inventory-status-example.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ import Close16 from "@carbon/icons/es/close/16.js";
2121
@customElement("inventory-status-example")
2222
class InventoryStatusExample extends LitElement {
2323
static styles = css`
24-
[slot="workspacePanelElement"] {
25-
block-size: 100%;
26-
}
27-
2824
pre {
2925
background: #f4f4f4;
3026
padding: 1rem;

examples/web-components/workspace-sidebar/src/outstanding-orders-example.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license
88
*/
99

10-
import { LitElement, html, css } from "lit";
10+
import { LitElement, html } from "lit";
1111
import { customElement, property } from "lit/decorators.js";
1212
import type { ChatInstance } from "@carbon/ai-chat";
1313
import { PanelType } from "@carbon/ai-chat";
@@ -255,12 +255,6 @@ const orders = [
255255

256256
@customElement("outstanding-orders-example")
257257
export class OutstandingOrdersExample extends LitElement {
258-
static styles = css`
259-
[slot="workspacePanelElement"] {
260-
block-size: 100%;
261-
}
262-
`;
263-
264258
@property({ type: String })
265259
accessor location = "";
266260

examples/web-components/workspace/src/inventory-report-example.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ import Edit16 from "@carbon/icons/es/edit/16.js";
4545
@customElement("inventory-report-example")
4646
class InventoryReportExample extends LitElement {
4747
static styles = css`
48-
[slot="workspacePanelElement"] {
49-
block-size: 100%;
50-
}
5148
pre {
5249
background: #f4f4f4;
5350
padding: 1rem;

examples/web-components/workspace/src/inventory-status-example.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ import Close16 from "@carbon/icons/es/close/16.js";
2121
@customElement("inventory-status-example")
2222
class InventoryStatusExample extends LitElement {
2323
static styles = css`
24-
[slot="workspacePanelElement"] {
25-
block-size: 100%;
26-
}
27-
2824
pre {
2925
background: #f4f4f4;
3026
padding: 1rem;

examples/web-components/workspace/src/outstanding-orders-example.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license
88
*/
99

10-
import { LitElement, html, css } from "lit";
10+
import { LitElement, html } from "lit";
1111
import { customElement, property } from "lit/decorators.js";
1212
import type { ChatInstance } from "@carbon/ai-chat";
1313
import { PanelType } from "@carbon/ai-chat";
@@ -26,12 +26,6 @@ import Close16 from "@carbon/icons/es/close/16.js";
2626

2727
@customElement("outstanding-orders-example")
2828
export class OutstandingOrdersExample extends LitElement {
29-
static styles = css`
30-
[slot="workspacePanelElement"] {
31-
block-size: 100%;
32-
}
33-
`;
34-
3529
@property({ type: String })
3630
accessor location = "";
3731

0 commit comments

Comments
 (0)