-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 3433-component-sizing-utilities
- Loading branch information
Showing
99 changed files
with
2,365 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-components': minor | ||
'@swisspost/design-system-styles': minor | ||
--- | ||
|
||
Added composable footer component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-components': minor | ||
--- | ||
|
||
Added the `post-megadropdown` component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-components': patch | ||
--- | ||
|
||
Added a fixed slot `post-list-item` on the `post-list-item` host element, so it is no longer necessary to add it manually. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-components': patch | ||
--- | ||
|
||
Fixed the used `headingLevel` in the `post-accorddion-item` component. The component now uses the value from its closest `post-accorddion` parent component, if this is specified and falls back to `h2` if not specified. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': patch | ||
--- | ||
|
||
Fixed the `btn-icon` styles, so icons within can no longer be rendered too small, because of the inline-padding on the button. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': minor | ||
--- | ||
|
||
Removed outdated portal-specific styles, including subnavigation-related rules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-components': minor | ||
--- | ||
|
||
Added the parts `button` and `body` in the `post-accordion-item` component, so one can override styles from the outside. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-components': patch | ||
--- | ||
|
||
Updated the `post-togglebutton` to function like a real button, including support for keyboard navigation and proper focus styles. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': patch | ||
--- | ||
|
||
Fixed the appstore-badge styles to get rid of the inline gap below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': minor | ||
--- | ||
|
||
Added the possibility to define a `$child-selector` parameter with our list mixins, so they can be used also with custom elements. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-documentation': minor | ||
'@swisspost/design-system-components': minor | ||
--- | ||
|
||
Added the `post-breadcrumb` component to provide a standalone breadcrumb navigation solution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-documentation': minor | ||
'@swisspost/design-system-components': minor | ||
--- | ||
|
||
Added the css parts `button` and `body` in the `post-accorddion-item` component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
const FOOTER_ID = 'd97528b3-a9ef-4201-bf28-9caf6e8997dc'; | ||
|
||
describe('Footer', () => { | ||
describe('Structure & Props', () => { | ||
beforeEach(() => { | ||
cy.getComponent('footer', FOOTER_ID); | ||
cy.get('@footer').find('> footer h2.visually-hidden').as('label'); | ||
}); | ||
|
||
it('should render', () => { | ||
cy.get('@footer').should('exist'); | ||
}); | ||
|
||
it('should set label text according to "label" prop', () => { | ||
cy.get('@label').should('have.text', 'Footer label'); | ||
}); | ||
|
||
it('should render the post-accorddion on mobile', () => { | ||
cy.viewport('iphone-3'); | ||
cy.get('@footer').find('post-accorddion').as('accorddion'); | ||
|
||
cy.get('@accorddion').should('exist'); | ||
}); | ||
|
||
it('should have accorddion-items with slotted elements on mobile', () => { | ||
cy.viewport('iphone-3'); | ||
cy.get('@footer').find('post-accorddion').as('accorddion'); | ||
cy.get('@accorddion').find('post-accordion-item').as('accordionItems'); | ||
|
||
cy.get('@accordionItems').should('have.length', 4); | ||
cy.get('@accordionItems') | ||
.find('slot[name="header"]') | ||
.each($slot => { | ||
const headerSlot = $slot.get(0) as HTMLSlotElement; | ||
|
||
expect(headerSlot.assignedElements().length).to.be.greaterThan(0); | ||
}); | ||
cy.get('@accordionItems') | ||
.find('slot:not([name])') | ||
.each($slot => { | ||
const slotDefault = $slot.get(0) as HTMLSlotElement; | ||
|
||
expect(slotDefault.assignedElements().length).to.be.greaterThan(0); | ||
}); | ||
}); | ||
}); | ||
|
||
describe('Accessibility', () => { | ||
it('Has no detectable a11y violations', () => { | ||
cy.getSnapshots('footer'); | ||
cy.checkA11y('#root-inner'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.