Skip to content

Commit

Permalink
fix: c-card--frontera variant misc bugs (#252)
Browse files Browse the repository at this point in the history
* fix: top of c-card--frontera link outlines hidden

Wrap c-card--frontera in section to add space for seeing link outlines.

* chore: do not double-load c-card--frontera styles

* fix: c-card--frontera wrongly has c-card padding

* chore: remove excess code and comment
  • Loading branch information
wesleyboar authored Nov 2, 2023
1 parent b20884a commit d8630b6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/components/c-card--frontera-about-page.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/core-styles.cms.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/lib/_imports/components/c-card--frontera-about-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
margin-bottom: 4.6rem;

padding: unset; /* overwrite .c-card */
}


Expand Down
4 changes: 4 additions & 0 deletions src/lib/_imports/components/c-card/c-card--frontera.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<section class="o-section">

<!-- FAQ: Not using {{this._self.name}} because class is frontera-about-page -->
<div class="o-grid o-grid--col-min-width">
<a href="#" class="c-card c-card--frontera-about-page">
Expand Down Expand Up @@ -46,3 +48,5 @@
<h3>Style ▸ Image + Text</h3>
</div>
</div>

</section>
3 changes: 0 additions & 3 deletions src/lib/_imports/components/c-card/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ variants:
status: deprecated
📝 name: using "frontera-about-page" breaks the demo
label: Frontera About Page
context:
supportStyles:
- ../../assets/components/c-card--frontera-about-page.css

0 comments on commit d8630b6

Please sign in to comment.