Skip to content
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

BUG: b2b-grid doesnt work as expected when setting column-gap of 16 #536

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions packages/core-components/src/html/utilities.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,80 @@
type="text/css"
href="/build/b2b-core-components.css" />
<link rel="stylesheet" type="text/css" href="./dev-styles.css" />
<style>
b2b-grid-col {
background: #ffd998;
}
</style>
</head>
<body>
<div>
<h1>Grid with 12 columns with column-gap=24 OK</h1>
<b2b-grid>
<b2b-grid-row column-gap="24">
<b2b-grid-col>1</b2b-grid-col>
<b2b-grid-col>2</b2b-grid-col>
<b2b-grid-col>3</b2b-grid-col>
<b2b-grid-col>4</b2b-grid-col>
<b2b-grid-col>5</b2b-grid-col>
<b2b-grid-col>6</b2b-grid-col>
<b2b-grid-col>7</b2b-grid-col>
<b2b-grid-col>8</b2b-grid-col>
<b2b-grid-col>9</b2b-grid-col>
<b2b-grid-col>10</b2b-grid-col>
<b2b-grid-col>11</b2b-grid-col>
<b2b-grid-col>12</b2b-grid-col>
</b2b-grid-row>
</b2b-grid>
</div>
<br /><br /><br /><br /><br /><br /><br /><br /><br />

<div>
<h1>Grid with 12 columns with column-gap=16 NOT WORKING</h1>
<b2b-grid>
<b2b-grid-row column-gap="16">
<b2b-grid-col>1</b2b-grid-col>
<b2b-grid-col>2</b2b-grid-col>
<b2b-grid-col>3</b2b-grid-col>
<b2b-grid-col>4</b2b-grid-col>
<b2b-grid-col>5</b2b-grid-col>
<b2b-grid-col>6</b2b-grid-col>
<b2b-grid-col>7</b2b-grid-col>
<b2b-grid-col>8</b2b-grid-col>
<b2b-grid-col>9</b2b-grid-col>
<b2b-grid-col>10</b2b-grid-col>
<b2b-grid-col>11</b2b-grid-col>
<b2b-grid-col>12</b2b-grid-col>
</b2b-grid-row>
</b2b-grid>
</div>
<br /><br /><br /><br /><br /><br /><br /><br /><br />

<div>
<h1>Grid with 4 columns with column-span=3 column-gap=24 OK</h1>
<b2b-grid>
<b2b-grid-row column-gap="24">
<b2b-grid-col span="3">1</b2b-grid-col>
<b2b-grid-col span="3">2</b2b-grid-col>
<b2b-grid-col span="3">3</b2b-grid-col>
<b2b-grid-col span="3">4</b2b-grid-col>
</b2b-grid-row>
</b2b-grid>
</div>
<br /><br /><br /><br /><br /><br /><br /><br /><br />

<div>
<h1>Grid with 4 columns with column-span=3 column-gap=16 NOT WORKING</h1>
<b2b-grid>
<b2b-grid-row column-gap="16">
<b2b-grid-col span="3">1</b2b-grid-col>
<b2b-grid-col span="3">2</b2b-grid-col>
<b2b-grid-col span="3">3</b2b-grid-col>
<b2b-grid-col span="3">4</b2b-grid-col>
</b2b-grid-row>
</b2b-grid>
</div>

<div
class="content-container"
style="background-color: #f4f4f4; max-width: 1400px">
Expand Down