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

fix(footer): adjustments to style for color and positioning #12135

Merged

Conversation

m4olivei
Copy link
Contributor

Related Ticket(s)

ADCMS-7082

Description

Fixes the color and padding of the "Cookie Preferences" component in the footer links. Note that the Cookie Preferences link is added by an external vendor script (https://tags.tiqcdn.com/utag/ibm/web/prod/utag.js). To test it in Storybook, see below testing instructions.

Testing Instructions

  • Open the Footer > Default story
  • Open dev tools and look for the <c4d-legal-nav-cookie-preferences-placeholder> component.
  • Edit as HTML and add the following markup as a child element:
<a role="link" id="icon-id007001372122542948" tabindex="0" lang="en" aria-haspopup="dialog" aria-label="Cookie Preferences, opens a dedicated popup modal window" class="truste_cursor_pointer cds--link cds--footer__link">Cookie Preferences</a>

Expected results

  • The link should visually resemble the other links in the legal nav. Check hover and focus as well.

Changelog

Changed

  • Add correct styling to expected link in the <c4d-legal-nav-cookie-preferences-placeholder> component.

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

netlify bot commented Nov 29, 2024

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

Name Link
🔨 Latest commit 4d54682
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/674a0a7820f2a800082fec14
😎 Deploy Preview https://deploy-preview-12135--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 29, 2024

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

Name Link
🔨 Latest commit 4d54682
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/674a0a78c94c470008beb585
😎 Deploy Preview https://deploy-preview-12135--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.

@m4olivei m4olivei closed this Nov 29, 2024
@m4olivei m4olivei reopened this Nov 29, 2024
Copy link
Contributor

@bruno-amorim bruno-amorim left a comment

Choose a reason for hiding this comment

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

Nice work @m4olivei!! It's working as expected and I can see the correct cursor on hover. Thank you!

@m4olivei m4olivei added the Ready to merge Label for the pull requests that are ready to merge label Nov 29, 2024
@kodiakhq kodiakhq bot merged commit 8036383 into carbon-design-system:main Nov 29, 2024
38 checks passed
@m4olivei m4olivei deleted the fix/footer-cookie-preferences-css branch November 29, 2024 20:05
m4olivei added a commit that referenced this pull request Nov 29, 2024
### Related Ticket(s)

[ADCMS-7082](https://jsw.ibm.com/browse/ADCMS-7082)

### Description

Fixes the color and padding of the "Cookie Preferences" component in the footer links. Note that the Cookie Preferences link is added by an external vendor script (https://tags.tiqcdn.com/utag/ibm/web/prod/utag.js). To test it in Storybook, see below testing instructions.

### Testing Instructions

* Open the Footer > Default story
* Open dev tools and look for the `<c4d-legal-nav-cookie-preferences-placeholder>` component.
* Edit as HTML and add the following markup as a child element:
```
<a role="link" id="icon-id007001372122542948" tabindex="0" lang="en" aria-haspopup="dialog" aria-label="Cookie Preferences, opens a dedicated popup modal window" class="truste_cursor_pointer cds--link cds--footer__link">Cookie Preferences</a>
```

**Expected results**

* The link should visually resemble the other links in the legal nav. Check hover and focus as well.

### Changelog

**Changed**

- Add correct styling to expected link in the `<c4d-legal-nav-cookie-preferences-placeholder>` component.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
m4olivei added a commit that referenced this pull request Nov 29, 2024
* fix(card): remove onclick handler for pictogram (#12123)

### Related Ticket(s)

[ADCMS-6850](https://jsw.ibm.com/browse/ADCMS-6850)

### Description

Removes an `onclick` handler on cards which is redundant and hinders customization by adopters. The `onlick` handler here is already covered by the `<a>` that has an `::after` pseudo element covering the card and capturing the click event for sighted and non-sighted users.

The `onclick` handler was added back in #6642.

### Changelog

**Changed**

- Removed `onclick` handler from pictogram cards

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

* fix(feature-section): stretch image if needed (#12126)

* fix(feature-card): stretch image to fill if needed

* fix(feature-section): stretch image to fill if needed

* fix(feature-card): use css logical properties

---------

Co-authored-by: Matthew Oliveira <m4olivei@gmail.com>

* fix(callout-with-media): spacing adjustments (#12124)

### Related Ticket(s)

[ADCMS-6942](https://jsw.ibm.com/browse/ADCMS-6942)

### Description

Adjust spacing on the `<c4d-callout-with-media>` component per the [Figma specs](https://www.figma.com/design/ADYTE8HS12nn63RJLZOk87/Layout-component--callout-with-media--visual-specs--2.1?node-id=0-1&node-type=canvas&t=QNmoJfFTr6bA75Ak-0). Note that there are no v2 specs for this component.

### Changelog

**Changed**

- Adjust spacing for slotted elements to the `<c4d-callout-with-media>` component.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

* fix(content-block-segmented): spacing adjustments (#12129)

### Related Ticket(s)

[ADCMS-6929](https://jsw.ibm.com/browse/ADCMS-6929)

### Description

Fixes spacing for the `<c4d-content-block-segmented-item>` component.

[Figma specs](https://www.figma.com/design/9mRDDnXj2FWnP1SBy88EYh/Content-block-v2?node-id=1-3099&node-type=canvas&t=jd4KO55hcGcO1hW9-0)

### Changelog

**Changed**

- Adjust spacing for slotted footer content to the `<c4d-content-block-segmented-item>` component

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

* fix(toc): tweak media query for sidebar at lg (#12133)

### Related Ticket(s)

[ADCMS-6990](https://jsw.ibm.com/browse/ADCMS-6990)

### Description

Adjusts the media query logic in the TOC component to line up with the Sass for the same. This fixes an issue where before, right on the lg breakpoint, the TOC was broken and stuck showing mostly mobile styles instead of desktop ones.

### Changelog

**Changed**

- TOC wlll now maintain the desktop layout for the lg breakpoint and above.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

* fix(footer): pass along the placeholder text to combo-box (#12134)

### Related Ticket(s)

[ADCMS-7082](https://jsw.ibm.com/browse/ADCMS-7082)

### Description

Fixes an issue where the `placeholder` text in the `<input>` within the `<c4d-language-selector-desktop>` component was not being correctly passed along from the `<c4d-footer-container>` attributes.

### Testing instructions

* Go to the Footer > Default language only story. We're focused here on the `<c4d-language-selector-desktop>` component:

![image](https://github.com/user-attachments/assets/a8cde6ea-b18f-4e4d-806b-d30a1d7f65ad)

* Click the "x" to clear the language selection

**Expected result**

You should see the placeholder text "Choose a language"

### Changelog

**Changed**

- `<c4d-language-selector-desktop>` component will show placeholder text for empty value


<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

* fix(footer): adjustments to style for color and positioning (#12135)

### Related Ticket(s)

[ADCMS-7082](https://jsw.ibm.com/browse/ADCMS-7082)

### Description

Fixes the color and padding of the "Cookie Preferences" component in the footer links. Note that the Cookie Preferences link is added by an external vendor script (https://tags.tiqcdn.com/utag/ibm/web/prod/utag.js). To test it in Storybook, see below testing instructions.

### Testing Instructions

* Open the Footer > Default story
* Open dev tools and look for the `<c4d-legal-nav-cookie-preferences-placeholder>` component.
* Edit as HTML and add the following markup as a child element:
```
<a role="link" id="icon-id007001372122542948" tabindex="0" lang="en" aria-haspopup="dialog" aria-label="Cookie Preferences, opens a dedicated popup modal window" class="truste_cursor_pointer cds--link cds--footer__link">Cookie Preferences</a>
```

**Expected results**

* The link should visually resemble the other links in the legal nav. Check hover and focus as well.

### Changelog

**Changed**

- Add correct styling to expected link in the `<c4d-legal-nav-cookie-preferences-placeholder>` component.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

* fix(footer): adjustments to adjunct links visibility (#12136)

### Related Ticket(s)

[ADCMS-7082](https://jsw.ibm.com/browse/ADCMS-7082)

### Description

Make some adjustments to the logic inside the legal-nav component for adjunct-links visibility. Before the fix here, the `@slotchange` event was not firing as expected when there were no adjunct links to hide them. Further, once the `hidden` class got correctly set on the `adjunct-links` wrapper, needed to fix some Sass to actually hide it.

### Changelog

**Changed**

- Hide adjunct-links container when there are no adjunct links.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->

---------

Co-authored-by: Andy Blum <andy.blum.01@gmail.com>
deathcave pushed a commit to deathcave/carbon-for-ibm-dotcom that referenced this pull request Dec 4, 2024
…esign-system#12135)

### Related Ticket(s)

[ADCMS-7082](https://jsw.ibm.com/browse/ADCMS-7082)

### Description

Fixes the color and padding of the "Cookie Preferences" component in the footer links. Note that the Cookie Preferences link is added by an external vendor script (https://tags.tiqcdn.com/utag/ibm/web/prod/utag.js). To test it in Storybook, see below testing instructions.

### Testing Instructions

* Open the Footer > Default story
* Open dev tools and look for the `<c4d-legal-nav-cookie-preferences-placeholder>` component.
* Edit as HTML and add the following markup as a child element:
```
<a role="link" id="icon-id007001372122542948" tabindex="0" lang="en" aria-haspopup="dialog" aria-label="Cookie Preferences, opens a dedicated popup modal window" class="truste_cursor_pointer cds--link cds--footer__link">Cookie Preferences</a>
```

**Expected results**

* The link should visually resemble the other links in the legal nav. Check hover and focus as well.

### Changelog

**Changed**

- Add correct styling to expected link in the `<c4d-legal-nav-cookie-preferences-placeholder>` component.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants