+
Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Sep 30, 2025

Resolves #1002

Narrative

We would like to provide brand-approved guidance on menus should look in U of I websites and applications. Currently all of our menu styles originate from SiteNow and menus throughout that system have diverged in terms of styling and implementation. Menu related components in UIDS must be able to meet the needs of SiteNow, where they will eventually be implemented, as well as applications where the need for icons and drop-down menus diverge somewhat from how menus are represented on the web. As such, this PR seeks to create a starting point for representing menus that are consistent and meet all the requirements of the variety of applications they might be used for while still adhering to the relevant standards for accessibility.

Note: Drop-down and pop-out menus were not implemented in this slice and will be added in future slices.

How to test

nvm use && yarn storybook

@pyrello
Copy link
Contributor

pyrello commented Sep 30, 2025

@copilot I forgot that we need to merge another PR (#1000) in to have the files we'll use as a starting point.

Co-authored-by: pyrello <709009+pyrello@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Create menu variant CSS that can be used in application form layouts Create menu component with horizontal and vertical variants for application form layouts Sep 30, 2025
@Copilot Copilot AI requested a review from pyrello September 30, 2025 16:06
Copilot finished work on behalf of pyrello September 30, 2025 16:06
@pyrello
Copy link
Contributor

pyrello commented Sep 30, 2025

@copilot We do not need a theme setting for the Vue menu component.

Co-authored-by: pyrello <709009+pyrello@users.noreply.github.com>

This comment was marked as outdated.

Copilot finished work on behalf of pyrello September 30, 2025 16:22
@Copilot Copilot AI requested a review from pyrello September 30, 2025 16:22
Co-authored-by: pyrello <709009+pyrello@users.noreply.github.com>
Copy link
Author

Copilot AI commented Sep 30, 2025

@copilot We do not need a theme setting for the Vue menu component.

Removed the theme prop from the Vue component in commit 3e46151. The menu--on-dark CSS class is now applied directly to the wrapper div in the dark background stories, keeping theming concerns at the CSS level rather than as a component prop.

Horizontal Menu
Vertical Menu on Dark

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • storybook.js.org
    • Triggering command: /usr/local/bin/node /home/REDACTED/work/uids/uids/node_modules/storybook/bin/index.cjs dev -p 6006 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of pyrello September 30, 2025 16:30
Co-authored-by: pyrello <709009+pyrello@users.noreply.github.com>
Copy link
Author

Copilot AI commented Sep 30, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • storybook.js.org
    • Triggering command: /usr/local/bin/node /home/REDACTED/work/uids/uids/node_modules/storybook/bin/index.cjs dev -p 6006 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@Copilot Copilot AI requested a review from pyrello September 30, 2025 16:51
Copilot finished work on behalf of pyrello September 30, 2025 16:51
@bspeare
Copy link
Contributor

bspeare commented Sep 30, 2025

@copilot We do not need Storybook story variants for menus with dark backgrounds.

@pyrello
Copy link
Contributor

pyrello commented Sep 30, 2025

@copilot Analyze the menu.scss file that is part of #1000 and use that as the basis for the menu.scss file in this pull request. If the SCSS indicates a different markup structure, make adjustments to the menu vue component accordingly. Refactor the stories as necessary to complete this task.

@pyrello
Copy link
Contributor

pyrello commented Oct 6, 2025

@copilot The showcase examples that were pulled in #1000 a couple steps ago contained classes and attributes that are specific to Drupal. They were copied from forms generated from Drupal. However this library should not contain these Drupal-isms. Please identify the Drupal-specific classes, IDs and attributes and remove them.

Co-authored-by: pyrello <709009+pyrello@users.noreply.github.com>
Copy link
Author

Copilot AI commented Oct 6, 2025

@copilot The showcase examples that were pulled in #1000 a couple steps ago contained classes and attributes that are specific to Drupal. They were copied from forms generated from Drupal. However thi...

Removed all Drupal-specific classes, IDs, and attributes in commit [short hash]:

HTML/Template cleanup:

  • Removed edit-* ID prefixes → generic IDs like search-input, department-select
  • Removed form-item-* classes → simple form-item
  • Removed form-type-* classes → removed entirely
  • Removed data-drupal-form-fields attributes → replaced with .has-reset class
  • Removed bef- (Better Exposed Filters) prefixes

SCSS cleanup:

  • .bef-form.filter-form
  • .bef-exposed-form.exposed-form
  • .bef--secondary.filters-secondary
  • .bef-toggle.select-all-toggle
  • All Drupal selectors replaced with standard class-based selectors

The showcase stories and supporting SCSS are now framework-agnostic.

Copilot finished work on behalf of pyrello October 6, 2025 19:21
@pyrello pyrello marked this pull request as ready for review October 15, 2025 16:02
@pyrello pyrello changed the title Create menu component with horizontal and vertical variants for application form layouts Add menu-related components and stories for horizontal and vertical variants Oct 15, 2025
@pyrello pyrello requested a review from a team October 15, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create menu variant CSS that can be used in application form layouts

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载