# Code maintenance DREAM-1111 - Align octicons-angular icon sizes with Primer View Components

Project: Stream Design System
Status: in specification
URL: https://community.openproject.org/work_packages/DREAM-1111

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Designer |  |
| Developers |  |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions |  |
| Sprint |  |
| Backlog bucket |  |
| Module |  |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

## Problem

Angular icons and Primer View Components (PVC) icons use the same size names for different pixel sizes, and have different defaults:

| Size | PVC `Primer::Beta::Octicon` | `@openproject/octicons-angular` |
| --- | --- | --- |
| default | `small`, 16px | `medium`, **32px** |
| `xsmall` | 12px | 12px |
| `small` | 16px | 16px |
| `medium` | **24px** | **32px** |
| `large` | – | 64px |

The Angular scale was copied from octicons-react (16/32/64). PVC uses 12/16/24.

## Impact in core (`origin/dev`, 2026-12-04)

- 108 Angular icons pass `size="small"` explicitly and 10 pass `xsmall`, mostly to avoid the 32px default.
- None pass `size="medium"` or `size="large"`.
- About 5 icons rely on the 32px default: Blankslate (`blankslate.component.ts`) and the 3 storage information icons. PVC's Blankslate renders its icon at `medium` (24px), so the Angular Blankslate is probably too large today.
- `toDOMString()` also defaults to `medium` (32px). Most of its 12 callers pass `'small'`.
- Mixed pages show different sizes for the same name, e.g. a PVC `medium` icon next to an Angular `medium` icon.

## Acceptance

- `@openproject/octicons-angular` uses PVC's scale: `xsmall` 12, `small` 16, `medium` 24.
- The default size is `small` (16px) for the icon components and `toDOMString()`.
- A decision on `large` (64px): drop it, or keep it as an OpenProject extension and document it.
- Released as a **major** version, with a changeset that explains the migration.
- Core: icons that relied on the 32px default are reviewed visually, starting with Blankslate. Redundant `size="small"` is removed where it's now the default (optional, can be a follow-up).

## Out of scope

- PVC's `aria-labelledby` handling and the other PVC `octicon.rb` inconsistencies (separate ticket).
- Accessibility attribute differences in the Angular icons (`aria-hidden="false"` when labelled).

## Notes

- Changing `medium` from 32 to 24 is a breaking change, so it needs a major version.
- If a major version isn't acceptable, the alternative is to keep the existing names and add PVC-aligned ones, but that leaves two scales.
- Related: DREAM-989.
