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

Feat: Add spacing CSS variables #334

Draft
wants to merge 50 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6d29523
Fix: Progress bar component not rendering on the documentation websit…
developernm Dec 17, 2024
536924b
Update CHANGELOG.md [skip ci]
lstevens98 Dec 17, 2024
9b86f14
Bump version to: v3.1.2 [skip ci]
lstevens98 Dec 17, 2024
baee32d
Fix: Cannot use a number type in the admiralty-autocomplete-option va…
developernm Jan 6, 2025
3b365ef
Update CHANGELOG.md [skip ci]
developernm Jan 6, 2025
5fa07c5
Bump version to: v3.1.3 [skip ci]
developernm Jan 6, 2025
812ba9f
feat: autcomplete spacing margins and padding
developernm Jan 9, 2025
6c8e182
feat: autocomplete css variables v2
developernm Jan 10, 2025
23dce04
feat: autocomplete css variables updated v3
developernm Jan 10, 2025
281f3ed
feat: breadcrumb updated margins
developernm Jan 13, 2025
3cda614
feat: breadcrumbs padding updated to use css variables
developernm Jan 13, 2025
4a84f30
332 Add link component to Documentation Website (#333)
lstevens98 Jan 14, 2025
4855a95
feat: button updated to use css variables
developernm Jan 14, 2025
c8da207
Merge branch 'next' into 303-feat-css-spacing
developernm Jan 14, 2025
394126b
merge: main
developernm Jan 14, 2025
48d40d7
Merge branch 'main' into merge-next-into-main
developernm Jan 14, 2025
6f3df32
fix: broken yarn lock file reran yarn install and yarn build locally
developernm Jan 14, 2025
18ceeed
Merge branch 'merge-next-into-main' of github.com:UKHO/admiralty-desi…
developernm Jan 14, 2025
9a46b16
Removed content design and accessibility headings
lstevens98 Jan 15, 2025
07e83ce
Merge pull request #335 from UKHO/merge-next-into-main
developernm Jan 15, 2025
c4d54e3
Update CHANGELOG.md [skip ci]
developernm Jan 15, 2025
e4aa4aa
Bump version to: v4.0.0 [skip ci]
developernm Jan 15, 2025
42fceb0
Merge branch 'main' into 303-feat-css-spacing
developernm Jan 17, 2025
4d04c14
merge: main
developernm Jan 17, 2025
32751c0
feat: card updated to use css variables and autocomplete documentatio…
developernm Jan 21, 2025
7249c6f
feat: checkbox css variables
developernm Jan 21, 2025
14aa30c
feat: colour block css variables
developernm Jan 21, 2025
07db790
feat: dialogue css variables
developernm Jan 22, 2025
30d4813
feat: expansion css variables
developernm Jan 22, 2025
9bbab0b
feat: file input css variables
developernm Jan 22, 2025
0e84c1b
feat: filter css variables
developernm Jan 22, 2025
5d25fee
feat: footer css variables
developernm Jan 27, 2025
a979922
docs: filter and footer documentation for css variables
developernm Jan 27, 2025
ed28878
feat: header css variables
developernm Jan 28, 2025
b78c0cc
feat: header menu item css variables and updated header variable desc…
developernm Jan 29, 2025
ff6e600
feat: header menu link css variables
developernm Jan 29, 2025
199c16f
feat: header profile css variables
developernm Jan 31, 2025
474630b
feat: header sub menu item css variables
developernm Jan 31, 2025
26cc366
feat: header sub menu item css variables
developernm Jan 31, 2025
e681943
feat: hint css variables
developernm Jan 31, 2025
aea1a63
feat: input css variables
developernm Feb 3, 2025
3afa729
feat: input invalid css variables
developernm Feb 3, 2025
a5047f4
feat: label css variables
developernm Feb 3, 2025
5de15de
feat: modal dialog css variables
developernm Feb 7, 2025
c529dea
feat: paginator css variables
developernm Feb 7, 2025
784c4f6
feat: phase banner css variables
developernm Feb 7, 2025
f832a5a
feat: pill css variables
developernm Feb 17, 2025
f582249
feat: radio css variables
developernm Feb 19, 2025
c4ddf2d
feat: radio group css variables
developernm Feb 19, 2025
6bcef99
feat: read more css variables
developernm Feb 19, 2025
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
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
# v4.0.0 (Wed Jan 15 2025)

#### 💥 Breaking Change

- `@ukho/admiralty-angular`, `@ukho/admiralty-core`, `@ukho/admiralty-react`
- Version 4 release [#335](https://github.com/UKHO/admiralty-design-system/pull/335) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow) [@lstevens98](https://github.com/lstevens98))
- Feat: Update autocomplete to hide chevron and removed typeahead [#292](https://github.com/UKHO/admiralty-design-system/pull/292) ([@developernm](https://github.com/developernm))
- `@ukho/admiralty-core`
- Feat: Remake typographic scale [#286](https://github.com/UKHO/admiralty-design-system/pull/286) ([@developernm](https://github.com/developernm))

#### 🚀 Enhancement

- `@ukho/admiralty-core`
- Feat: Updated card component stories to display customisable cards using the pill component. [#328](https://github.com/UKHO/admiralty-design-system/pull/328) ([@UKHOGreg](https://github.com/UKHOGreg) [@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Fix: Update missing typographic sizes [#315](https://github.com/UKHO/admiralty-design-system/pull/315) ([@developernm](https://github.com/developernm))
- `@ukho/admiralty-angular`, `@ukho/admiralty-core`, `@ukho/admiralty-react`
- Fix: Input to behave correctly with aria-describedby [#326](https://github.com/UKHO/admiralty-design-system/pull/326) ([@developernm](https://github.com/developernm) [@lstevens98](https://github.com/lstevens98))
- Feat: New Pill style component [#287](https://github.com/UKHO/admiralty-design-system/pull/287) ([@UKHOGreg](https://github.com/UKHOGreg) [@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- `@ukho/admiralty-angular`, `@ukho/admiralty-core`
- Feat: New Minified Footer component [#284](https://github.com/UKHO/admiralty-design-system/pull/284) ([@developernm](https://github.com/developernm))

#### 🐛 Bug Fix

- 332 Add link component to Documentation Website [#333](https://github.com/UKHO/admiralty-design-system/pull/333) ([@lstevens98](https://github.com/lstevens98))
- `@ukho/admiralty-core`
- Fix theme typo for font-size-7 [#313](https://github.com/UKHO/admiralty-design-system/pull/313) ([@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Fix: Readmore component needs refining [#289](https://github.com/UKHO/admiralty-design-system/pull/289) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Docs: updated documentation for admiralty select [#295](https://github.com/UKHO/admiralty-design-system/pull/295) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Fix: disabled checkbox [#294](https://github.com/UKHO/admiralty-design-system/pull/294) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Feat: Include documentation to demonstrate a placeholder option [#271](https://github.com/UKHO/admiralty-design-system/pull/271) ([@developernm](https://github.com/developernm))

#### 🔩 Dependency Updates

- `@ukho/admiralty-angular`, `@ukho/admiralty-core`, `@ukho/admiralty-react`
- Upgrade yarn to v4 [#311](https://github.com/UKHO/admiralty-design-system/pull/311) ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

#### Authors: 4

- [@developernm](https://github.com/developernm)
- Greg Williams ([@UKHOGreg](https://github.com/UKHOGreg))
- Lewis Stevens ([@lstevens98](https://github.com/lstevens98))
- Tom Barham ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

---

# v3.1.3 (Mon Jan 06 2025)

#### 🐛 Bug Fix

- `@ukho/admiralty-core`
- Fix: Cannot use a number type in the admiralty-autocomplete-option value property [#325](https://github.com/UKHO/admiralty-design-system/pull/325) ([@developernm](https://github.com/developernm))

#### Authors: 1

- [@developernm](https://github.com/developernm)

---

# v3.1.2 (Tue Dec 17 2024)

#### 🐛 Bug Fix
Expand Down
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"packages/*"
],
"npmClient": "yarn",
"version": "4.5.3",
"version": "4.0.0",
"useNx": true
}
}
33 changes: 33 additions & 0 deletions packages/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# v4.0.0 (Wed Jan 15 2025)

#### 💥 Breaking Change

- Version 4 release [#335](https://github.com/UKHO/admiralty-design-system/pull/335) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow) [@lstevens98](https://github.com/lstevens98))
- Feat: Update autocomplete to hide chevron and removed typeahead [#292](https://github.com/UKHO/admiralty-design-system/pull/292) ([@developernm](https://github.com/developernm))

#### 🚀 Enhancement

- Fix: Input to behave correctly with aria-describedby [#326](https://github.com/UKHO/admiralty-design-system/pull/326) ([@developernm](https://github.com/developernm) [@lstevens98](https://github.com/lstevens98))
- Feat: New Pill style component [#287](https://github.com/UKHO/admiralty-design-system/pull/287) ([@UKHOGreg](https://github.com/UKHOGreg) [@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Feat: New Minified Footer component [#284](https://github.com/UKHO/admiralty-design-system/pull/284) ([@developernm](https://github.com/developernm))

#### 🐛 Bug Fix

- Merge branch 'main' into merge-next-into-main ([@developernm](https://github.com/developernm))
- merge: main ([@developernm](https://github.com/developernm))
- Merge remote-tracking branch 'origin/main' into next ([@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Merge main into next ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

#### 🔩 Dependency Updates

- Upgrade yarn to v4 [#311](https://github.com/UKHO/admiralty-design-system/pull/311) ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

#### Authors: 4

- [@developernm](https://github.com/developernm)
- Greg Williams ([@UKHOGreg](https://github.com/UKHOGreg))
- Lewis Stevens ([@lstevens98](https://github.com/lstevens98))
- Tom Barham ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

---

# v3.0.1 (Fri Oct 04 2024)

#### 🐛 Bug Fix
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ukho/admiralty-angular",
"version": "3.1.2",
"version": "4.0.0",
"module": "dist/fesm2022/ukho-admiralty-angular.mjs",
"typings": "dist/index.d.ts",
"scripts": {
Expand All @@ -17,7 +17,7 @@
"@angular/core": ">=16.2.12"
},
"dependencies": {
"@ukho/admiralty-core": "workspace:*",
"@ukho/admiralty-core": "^4.0.0",
"tslib": "^2.7.0"
},
"devDependencies": {
Expand Down
53 changes: 53 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
# v4.0.0 (Wed Jan 15 2025)

#### 💥 Breaking Change

- Version 4 release [#335](https://github.com/UKHO/admiralty-design-system/pull/335) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow) [@lstevens98](https://github.com/lstevens98))
- Feat: Update autocomplete to hide chevron and removed typeahead [#292](https://github.com/UKHO/admiralty-design-system/pull/292) ([@developernm](https://github.com/developernm))
- Feat: Remake typographic scale [#286](https://github.com/UKHO/admiralty-design-system/pull/286) ([@developernm](https://github.com/developernm))

#### 🚀 Enhancement

- Feat: Updated card component stories to display customisable cards using the pill component. [#328](https://github.com/UKHO/admiralty-design-system/pull/328) ([@UKHOGreg](https://github.com/UKHOGreg) [@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Fix: Input to behave correctly with aria-describedby [#326](https://github.com/UKHO/admiralty-design-system/pull/326) ([@developernm](https://github.com/developernm) [@lstevens98](https://github.com/lstevens98))
- Feat: New Pill style component [#287](https://github.com/UKHO/admiralty-design-system/pull/287) ([@UKHOGreg](https://github.com/UKHOGreg) [@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Feat: New Minified Footer component [#284](https://github.com/UKHO/admiralty-design-system/pull/284) ([@developernm](https://github.com/developernm))
- Fix: Update missing typographic sizes [#315](https://github.com/UKHO/admiralty-design-system/pull/315) ([@developernm](https://github.com/developernm))

#### 🐛 Bug Fix

- Merge branch 'main' into merge-next-into-main ([@developernm](https://github.com/developernm))
- merge: main ([@developernm](https://github.com/developernm))
- Fix theme typo for font-size-7 [#313](https://github.com/UKHO/admiralty-design-system/pull/313) ([@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Merge remote-tracking branch 'origin/main' into next ([@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Fix: Readmore component needs refining [#289](https://github.com/UKHO/admiralty-design-system/pull/289) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Docs: updated documentation for admiralty select [#295](https://github.com/UKHO/admiralty-design-system/pull/295) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Fix: disabled checkbox [#294](https://github.com/UKHO/admiralty-design-system/pull/294) ([@developernm](https://github.com/developernm) [@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Merge main into next ([@ecstaticrainbow](https://github.com/ecstaticrainbow))
- Feat: Include documentation to demonstrate a placeholder option [#271](https://github.com/UKHO/admiralty-design-system/pull/271) ([@developernm](https://github.com/developernm))

#### 🔩 Dependency Updates

- Upgrade yarn to v4 [#311](https://github.com/UKHO/admiralty-design-system/pull/311) ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

#### Authors: 4

- [@developernm](https://github.com/developernm)
- Greg Williams ([@UKHOGreg](https://github.com/UKHOGreg))
- Lewis Stevens ([@lstevens98](https://github.com/lstevens98))
- Tom Barham ([@ecstaticrainbow](https://github.com/ecstaticrainbow))

---

# v3.1.3 (Mon Jan 06 2025)

#### 🐛 Bug Fix

- Fix: Cannot use a number type in the admiralty-autocomplete-option value property [#325](https://github.com/UKHO/admiralty-design-system/pull/325) ([@developernm](https://github.com/developernm))

#### Authors: 1

- [@developernm](https://github.com/developernm)

---

# v3.1.2 (Tue Dec 17 2024)

#### 🐛 Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ukho/admiralty-core",
"version": "3.1.2",
"version": "4.0.0",
"description": "Stencil Component Starter",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
Expand Down
20 changes: 8 additions & 12 deletions packages/core/src/components/autocomplete/autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
border-radius: 0; /* Safari 10 on iOS adds implicit border rounding. */
box-sizing: border-box;
color: $autocomplete-text-colour;
margin-bottom: 0; /* BUG: Safari 10 on macOS seems to add an implicit margin. */
margin-bottom: $autocomplete-input-margin-bottom; // Prev: 0px /* BUG: Safari 10 on macOS seems to add an implicit margin. */
line-height: 1.5;
width: 100%;
}
Expand All @@ -37,7 +37,7 @@
}

.autocomplete__input--default {
padding: 12px;
padding: $autocomplete-input-padding;
}

.autocomplete__input--focused {
Expand All @@ -47,7 +47,7 @@
}

.autocomplete__input--show-all-values {
padding: 12px 35px 12px 12px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
padding: $autocomplete-input-display-all-padding; /* Space for arrow. Other padding should match .autocomplete__input--default. */
cursor: pointer;
}

Expand All @@ -64,7 +64,7 @@
border: 2px solid $autocomplete-input-border-colour;
border-top: 0;
color: $autocomplete-text-colour;
margin: 0;
margin: $autocomplete-input-menu-margin;
max-height: 342px;
overflow-x: hidden;
padding: 0;
Expand Down Expand Up @@ -99,7 +99,7 @@
cursor: pointer;
display: block;
position: relative;
margin-bottom: 0;
margin-bottom: $autocomplete-input-option-margin-bottom;
}

.autocomplete__option:before {
Expand Down Expand Up @@ -130,19 +130,15 @@
background-color: $autocomplete-option-no-results-background-colour;
color: $autocomplete-option-no-results-text-colour;
text-align: center;

margin-top: 50px;
margin-bottom: 50px;
margin: $autocomplete-input-option-no-results-margin;
cursor: not-allowed;
}
.autocomplete__option--no-results:hover {
background-color: $autocomplete-option-no-results-background-colour;
border-color: $autocomplete-option-no-results-background-colour;
color: $autocomplete-option-no-results-text-colour;
text-align: center;

margin-top: 50px;
margin-bottom: 50px;
margin: $autocomplete-option-no-results-hover-margin;
cursor: not-allowed;
}

Expand All @@ -155,7 +151,7 @@

.autocomplete__hint,
.autocomplete__option {
padding: 10px;
padding: $autocomplete-option-padding;
}

.autocomplete-down-icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ export const Countries: Story = {
</admiralty-autocomplete>`,
args: { label: 'Country', hint: 'Select a country' },
};
export const NoResults: Story = {
render: args =>
html` <admiralty-autocomplete
label="${args.label}"
hint="${args.hint}"
?invalid="${args.invalid}"
invalid-message="${args.invalidMessage}"
?disabled="${args.disabled}"
value="${args.value}">
</admiralty-autocomplete>`,
args: { label: 'No Results' },
};

export const CountriesPreSelected: Story = {
render: args =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function filterOptions(options: Option[], searchTerm: string) {
}

function filterOptionsByValue(options: Option[], searchTerm: string) {
return options.filter(({ value }) => value.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1);
return options.filter(({ value }) => value.toString().toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1);
}

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
* @prop --admiralty-autocomplete-icon-font-weight: Font weight for the autocompletes icon

* @prop --admiralty-autocomplete-option-font-weight: Font weight for the autocompletes option

* @prop --admiralty-autocomplete-input-padding: Padding for autocomplete
* @prop --admiralty-autocomplete-input-display-all-padding: Padding for autocomplete when displaying all options
* @prop --admiralty-autocomplete-option-padding: Padding for autocomplete options

* @prop --admiralty-autocomplete-input-margin-bottom: Margin bottom for the autocomplete
* @prop --admiralty-autocomplete-input-menu-margin: Margin for the menu of the autocomplete
* @prop --admiralty-autocomplete-input-option-margin-bottom: Margin bottom for the options of the autocomplete
* @prop --admiralty-autocomplete-option-no-results-margin: Autocomplete no results margin top and bottom
* @prop --admiralty-autocomplete-option-no-results-hover-margin: Autocomplete no results hover margin top and bottom

**/

$autocomplete-background-colour: var(--admiralty-background-colour) !default;
Expand All @@ -31,3 +42,16 @@ $autocomplete-icon-font-size: var(--admiralty-autocomplete-icon-font-size, var(-
$autocomplete-icon-font-weight: var(--admiralty-autocomplete-icon-font-weight, var(--admiralty-font-weight-normal));

$autocomplete-option-font-weight: var(--admiralty-autocomplete-option-font-weight, var(--admiralty-font-weight-normal));

// Padding
$autocomplete-input-padding: var(--admiralty-autocomplete-input-padding, var(--admiralty-spacing-3));
$autocomplete-input-display-all-padding: var(--admiralty-autocomplete-input-display-all-padding, 12px 35px 12px 12px);
$autocomplete-option-padding: var(--admiralty-autocomplete-option-padding, var(--admiralty-spacing-2)); // Prev: 10px | Now: 8px

// Margins
$autocomplete-input-margin-bottom: var(--autocomplete-input-margin-bottom, var(--admiralty-spacing-0));
$autocomplete-input-menu-margin: var(--autocomplete-input-menu-margin, var(--admiralty-spacing-0));
$autocomplete-input-option-margin-bottom: var(--admiralty-autocomplete-input-option-margin-bottom, var(--admiralty-spacing-0));

$autocomplete-input-option-no-results-margin: var(--admiralty-autocomplete-option-no-results-margin, 50px 0);
$autocomplete-option-no-results-hover-margin: var(--admiralty-autocomplete-option-no-results-hover-margin, 50px 0);
22 changes: 15 additions & 7 deletions packages/core/src/components/autocomplete/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,21 @@

## CSS Custom Properties

| Name | Description |
| --------------------------------------------- | ---------------------------------------- |
| `--admiralty-autocomplete-icon-font-size` | Font size for the autocompletes icon |
| `--admiralty-autocomplete-icon-font-weight` | Font weight for the autocompletes icon |
| `--admiralty-autocomplete-label-font-size` | Font size for the autocompletes label |
| `--admiralty-autocomplete-option-font-size` | Font size for the autocompletes option |
| `--admiralty-autocomplete-option-font-weight` | Font weight for the autocompletes option |
| Name | Description |
| --------------------------------------------------------- | ---------------------------------------------------- |
| `--admiralty-autocomplete-icon-font-size` | Font size for the autocompletes icon |
| `--admiralty-autocomplete-icon-font-weight` | Font weight for the autocompletes icon |
| `--admiralty-autocomplete-input-display-all-padding` | Padding for autocomplete when displaying all options |
| `--admiralty-autocomplete-input-margin-bottom` | Margin bottom for the autocomplete |
| `--admiralty-autocomplete-input-menu-margin` | Margin for the menu of the autocomplete |
| `--admiralty-autocomplete-input-option-margin-bottom` | Margin bottom for the options of the autocomplete |
| `--admiralty-autocomplete-input-padding` | Padding for autocomplete |
| `--admiralty-autocomplete-label-font-size` | Font size for the autocompletes label |
| `--admiralty-autocomplete-option-font-size` | Font size for the autocompletes option |
| `--admiralty-autocomplete-option-font-weight` | Font weight for the autocompletes option |
| `--admiralty-autocomplete-option-no-results-hover-margin` | Autocomplete no results hover margin top and bottom |
| `--admiralty-autocomplete-option-no-results-margin` | Autocomplete no results margin top and bottom |
| `--admiralty-autocomplete-option-padding` | Padding for autocomplete options |


## Dependencies
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/breadcrumb/breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

.breadcrumb-icon {
margin: 0 10px;
margin: $breadcrumb-icon-margin;
font-size: $breadcrumb-icon-font-size;
color: $breadcrumb-separator-colour;
}
Expand All @@ -17,7 +17,7 @@ a {
font-weight: $breadcrumb-font-weight;
text-decoration: none;
color: $breadcrumb-font-colour;
margin: 10px 2px;
margin: $breadcrumb-href-margin;

&:hover {
color: $breadcrumb-font-colour-hover;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* @prop --admiralty-breadcrumb-font-size: Font size for the breadcrumb
* @prop --admiralty-breadcrumb-font-weight: Font weight for the breadcrumb
* @prop --admiralty-breadcrumb-font-weight-active: Font weight for the breadcrumb active

* @prop --admiralty-breadcrumb-icon-margin: Margin for the breadcrumb icon
* @prop --admiralty-breadcrumb-href-margin: Margin for the hyperlink
**/

$breadcrumb-font-colour: var(--admiralty-text-colour) !default;
Expand All @@ -14,3 +17,6 @@ $breadcrumb-font-size: var(--admiralty-breadcrumb-font-size, var(--admiralty-fon
$breadcrumb-icon-font-size: var(--admiralty-breadcrumb-icon-font-size, var(--admiralty-font-size--2));
$breadcrumb-font-weight: var(--admiralty-breadcrumb-font-weight, var(--admiralty-font-weight-normal));
$breadcrumb-font-weight-active: var(--admiralty-breadcrumb-font-weight-active, var(--admiralty-font-weight-medium));

$breadcrumb-icon-margin: var(--admiralty-breadcrumb-icon-margin, 0 10px);
$breadcrumb-href-margin: var(--admiralty-breadcrumb-href-margin, 10px 2px);
Loading
Loading