Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/cold-cycles-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@db-ux/core-components": minor
"@db-ux/ngx-core-components": minor
"@db-ux/react-core-components": minor
"@db-ux/wc-core-components": minor
"@db-ux/v-core-components": minor
---

feat(DBHeader): introduce new property `closeDrawerLabel`
This label allows to set the label for the close button when the `DBDrawer` is opened.
It passes the prop value to the inner `DBDrawer` prop `closeButtonText`.
1 change: 1 addition & 0 deletions packages/components/src/components/header/header.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default function DBHeader(props: DBHeaderProps) {
class="db-header-drawer"
rounded
spacing="small"
closeButtonText={props.closeDrawerLabel}
open={getBoolean(props.drawerOpen)}
onClose={() => state.handleToggle()}>
<div class="db-header-drawer-navigation">
Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/components/header/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export type DBHeaderDefaultProps = {
*/
drawerOpen?: boolean | string;

/**
* This attribute sets the label for the close button in the drawer
* which is shown after the burger menu opened.
*/
closeDrawerLabel?: string;

/**
* Forces the header to use mobile layout for desktop as well.
* You should only use this setting if you really can't provide a smaller navigation.
Expand Down