Skip to content

Conversation

@at-susie
Copy link
Member

Description

We identified the lack of a consistent visual style for inline code elements across services. In the absence of a standardized approach, teams have implemented custom styles, resulting in visual inconsistencies.

This PR introduces a new variant in Box component called awsui-inline-code, which can be used to display a unified style for inline-code elements.

App layout

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.16%. Comparing base (917de81) to head (2f2a3ea).
⚠️ Report is 38 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3879   +/-   ##
=======================================
  Coverage   97.16%   97.16%           
=======================================
  Files         850      850           
  Lines       24785    24772   -13     
  Branches     8735     8732    -3     
=======================================
- Hits        24082    24070   -12     
+ Misses        696      653   -43     
- Partials        7       49   +42     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@at-susie at-susie marked this pull request as ready for review September 18, 2025 10:06
@at-susie at-susie requested a review from a team as a code owner September 18, 2025 10:06
@at-susie at-susie requested review from ernst-dev and removed request for a team September 18, 2025 10:06
avinashbot
avinashbot previously approved these changes Sep 24, 2025
Copy link
Member

@avinashbot avinashbot left a comment

Choose a reason for hiding this comment

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

I think it's fine to take the transparent example off the page to skip the false positive from axe. Internal accesibility checkers are cool with it though, so good to merge!

avinashbot
avinashbot previously approved these changes Sep 24, 2025
avinashbot
avinashbot previously approved these changes Oct 2, 2025
just-boris
just-boris previously approved these changes Oct 13, 2025
Copy link
Member

@just-boris just-boris left a comment

Choose a reason for hiding this comment

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

All good with suggestions to improve the demo page

<div>
<Table<TableItem>
totalItemsCount={4}
renderAriaLive={({ firstIndex, lastIndex, totalItemsCount }: TableProps.LiveAnnouncement) =>
Copy link
Member

Choose a reason for hiding this comment

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

This should not be needed

Suggested change
renderAriaLive={({ firstIndex, lastIndex, totalItemsCount }: TableProps.LiveAnnouncement) =>
renderAriaLive={({ firstIndex, lastIndex, totalItemsCount }) =>

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you @just-boris for the feedback. I integrated all the recommendations in this commit

{
id: 'variable',
header: 'Variable name',
cell: (item: TableItem) => <Link href="#">{item.name || '-'}</Link>,
Copy link
Member

Choose a reason for hiding this comment

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

Same for all arguments in the table props

Suggested change
cell: (item: TableItem) => <Link href="#">{item.name || '-'}</Link>,
cell: (item) => <Link href="#">{item.name || '-'}</Link>,

Copy link
Member Author

Choose a reason for hiding this comment

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

I integrated this in this commit

expect(findClose(wrapper).getElement()).not.toHaveAttribute('aria-label');
});

test('Opens and closes drawer in uncontrolled mode', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Something wrong happened with app layout folder. These files were not supposed to change, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, these files were not supposed to change. I rebased this my branch this morning that might cause this.
I will create a new clean PR.

@just-boris
Copy link
Member

released #3931

@just-boris just-boris closed this Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants