OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move icons to primer
Oliver Güntherf9cba93bac45
diff --git a/spec/components/docs/styles/04-icons.md.erb b/spec/components/docs/styles/04-icons.md.erbindex f2605ccea17..77c7a1f5d31 100644--- a/spec/components/docs/styles/04-icons.md.erb+++ b/spec/components/docs/styles/04-icons.md.erb@@ -2,59 +2,26 @@title: Icons----<%= include_spot_assets %>-# Icons-> Note: This page concerns OP icons and is about to be migrated to reference Primer icons-Icons are used as visual indicators or small illustrations. They provide additional context when necessary.-<span class="spot-icon spot-icon_add"></span>-<span class="spot-icon spot-icon_accountable"></span>-<span class="spot-icon spot-icon_add-link"></span>-<span class="spot-icon spot-icon_contacts"></span>-<span class="spot-icon spot-icon_edit"></span>+<% %w[person plus pencil].each do |icon| %>+<%= render(Primer::Beta::Octicon.new(icon: icon)) %>+ <div class="mb-3"></div>+<% end %>## Design notes-Icons should generally not be used on its own without a label, especially on interactive elements, where their function might be ambiguous.--There are notable examples: if the meaning of the button is abundantly clear without a label and space is limited (or repetitive elements), an icon-only interactive element is possible (for example, the "Mark as read" button on each notification element).--However, icon-only buttons or links should never be used for critical primary functions like Save, Confirm, Remove and Delete.--## Usage--Icons are a CSS class only. To use them, apply the `spot-icon` BEM block on a generic inline element like `span`.--## Options--There are four pre-defined dimensions for icons: 12×12, 16×16, 20×20 and 24×24.--The default size is 16×16.--<button class="button">- Add work package- <span class="spot-icon spot-icon_add"></span>-</button>--<a href="#" class="spot-link">- <span>This is a spot-link</span>- <span class="spot-icon spot-icon_add"></span>-</a>+Please see the primer documentation for [icons](https://primer.style/design/foundations/icons/) and their [guidelines](https://primer.style/design/foundations/icons/design-guidelines).## Available icons-<%-icons = JSON.parse File.read(Rails.root.join('frontend/src/app/spot/icon-font/icons.json'))-%>-<div class="icons">-<% icons.each do |name| %>+<% Octicons::OCTICON_SYMBOLS.keys.each do |name| %><div class="icons--icon"><div class="icons--preview">- <span class="icons--preview-icon spot-icon spot-icon_<%= name %>"></span>+ <%= render(Primer::Beta::Octicon.new(icon: name)) %></div><div class="icons--name"><%= name %></div></div>@@ -76,25 +43,17 @@ icons = JSON.parse File.read(Rails.root.join('frontend/src/app/spot/icon-font/icdisplay: flex;flex-direction: column;flex-basis: 120px;- flex-grow: 1;- flex-shrink: 1;+ flex-grow: 0;+ flex-shrink: 0;min-width: 80px;max-width: 180px;text-align: center;padding: 0.5rem;-}--.icons--preview {- width: 100%;display: flex;justify-content: center;align-items: center;}-.icons--preview-icon {- font-size: 3rem;-}-.icons--name {font-weight: bold;margin-top: 0.5rem;