-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into field-spacing-review
- Loading branch information
Showing
11 changed files
with
160 additions
and
27 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,15 @@ | ||
--- | ||
'braid-design-system': minor | ||
--- | ||
|
||
--- | ||
new: | ||
- IconHash | ||
--- | ||
|
||
**IconHash:** Add component | ||
|
||
**EXAMPLE USAGE:** | ||
```jsx | ||
<IconHash /> | ||
``` |
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,13 @@ | ||
--- | ||
'braid-design-system': patch | ||
--- | ||
|
||
--- | ||
updated: | ||
- Badge | ||
--- | ||
|
||
**Badge:** Ensure label follows correct tone | ||
|
||
Ensure that the foreground text of a `Badge` always follows the correct tone for the background colour. | ||
Fixes a bug where using a `Badge` in a `List` that overrides the default tone would result in the `Badge` text following the `List` tone instead of the `Badge` tone. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconHash/IconHash.docs.tsx
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,21 @@ | ||
import React from 'react'; | ||
import type { ComponentDocs } from 'site/types'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
import source from '@braid-design-system/source.macro'; | ||
import { IconHash, Heading, Stack } from '../../'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconHash /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconHash/IconHash.tsx
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,12 @@ | ||
import React from 'react'; | ||
import { Box } from '../../Box/Box'; | ||
import useIcon, { type UseIconProps } from '../../../hooks/useIcon'; | ||
import { IconHashSvg } from './IconHashSvg'; | ||
|
||
export type IconHashProps = UseIconProps; | ||
|
||
export const IconHash = (props: IconHashProps) => { | ||
const iconProps = useIcon(props); | ||
|
||
return <Box component={IconHashSvg} {...iconProps} />; | ||
}; |
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
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
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