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

feat(tile, tile-group): add components #12091

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

feat(tile, tile-group): add components #12091

wants to merge 8 commits into from

Conversation

andy-blum
Copy link
Member

Related Ticket(s)

https://jsw.ibm.com/browse/ADCMS-6691

Description

Migrates the tile and tile-group components from carbon-for-aem into carbon-for-ibmdotcom

Changelog

New

  • adds c4d-tile
  • adds c4d-tile-group

@andy-blum andy-blum requested a review from a team as a code owner November 1, 2024 16:22
@andy-blum andy-blum requested review from m4olivei, bruno-amorim, marcelojcs and Valentin-Sorin-Nicolae and removed request for a team November 1, 2024 16:22
Copy link

netlify bot commented Nov 1, 2024

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit dcd9cec
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/67257f47a777d10008906c4c
😎 Deploy Preview https://deploy-preview-12091--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 1, 2024

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit dcd9cec
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/67257f47af14d70008f2d7ce
😎 Deploy Preview https://deploy-preview-12091--ibm-dotcom-web-components-react-wrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andy-blum andy-blum added the Needs design approval PRs on feature requests and new components have to get design approval before merge. label Nov 1, 2024
@andy-blum andy-blum added Needs design approval PRs on feature requests and new components have to get design approval before merge. and removed Needs design approval PRs on feature requests and new components have to get design approval before merge. labels Nov 1, 2024
Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed a couple of things from a static review perspective. Also, review CI jobs, looks like at least stylelint is angry.

Also comparing the componets on CAEM vs here:

The image ratios are different. Not sure which is correct:

image

The Tile Group Default and With Image stories lost their knobs configuration.

image

* LICENSE file in the root directory of this source tree.
*/

import { html } from 'lit-element';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should take the opportunity here to update lit imports to the recommended form. See the v2 upgrade guide. I had a PR open to do this on CAEM, never got around to tidying it up, but it stands as a good guide to the changes we need. Doing this change will align well with existing components in the repo.

focusable="false"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
data-autoid="dds--card__pictogram"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dds prefix here. We can probably just drop this data attribute I'd think? Was probably copy 🍝 from somewhere long ago.

Comment on lines +19 to +25
// @use '@carbon/styles/scss/type' as *;
// @use '@carbon/styles/scss/theme' as *;
// @use '@carbon/styles/scss/utilities';
// @use '@carbon/styles/scss/spacing' as *;
// @use '@carbon/styles/scss/reset' as *;
// @use '@carbon/grid' as *;
// @use '@carbon/ibmdotcom-styles/scss/globals/utils/flex-grid' as *;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented out code.

content: '';
display: block;
/* stylelint-disable-next-line property-no-unknown */
aspect-ratio: var(--caem-tile-aspect-ratio, 16 / 9);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to keep the caem prefix here, or can we update this to a c4d prefix?

*/

import { LitElement, html, property, state, query } from 'lit-element';
import { classMap } from 'lit-html/directives/class-map.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any directive imports also need updating to use the lit package instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs design approval PRs on feature requests and new components have to get design approval before merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants