#401 Update the styling/buttons to use the new solid-ui#402
Draft
SharonStrats wants to merge 13 commits into
Draft
#401 Update the styling/buttons to use the new solid-ui#402SharonStrats wants to merge 13 commits into
SharonStrats wants to merge 13 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the profile pane UI to align with the newer solid-ui button component and design tokens, including button variant changes and a broad CSS spacing/token pass across dialogs and sections.
Changes:
- Migrates many usages from
solid-ui/components/actions/buttontosolid-ui/components/button, updating variants (e.g.,tertiary,ghost) and loading handling. - Converts spacing and sizing from
rem/design vars topx, and replaces several color/font variables withsolid-uitokens. - Refactors some section card helper logic and updates section templates to use icon slots.
Reviewed changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ui/dialog.ts | Switches modal header/footer buttons to new solid-ui-button import and variants. |
| src/ui/dialog.responsive.css | Updates responsive modal spacing/radius to px-based values. |
| src/ui/dialog.css | Updates modal base styles, borders, and header/button styling to solid-ui tokens. |
| src/styles/EditDialogs.responsive.css | Updates responsive edit-dialog sizing/typography and replaces touch-target vars. |
| src/styles/EditDialogs.css | Updates edit-dialog base styling to solid-ui tokens and px sizing. |
| src/styles/CollapsibleSection.css | Simplifies collapsible section styles and aligns spacing with new tokens. |
| src/sections/social/SocialSection.ts | Updates buttons to new component/variants and adjusts button content structure. |
| src/sections/social/SocialSection.css | Updates social section spacing/colors and relies more on solid-ui styling. |
| src/sections/social/SocialEditDialog.ts | Updates drag/delete buttons to new variants and icon slot usage. |
| src/sections/skills/SkillsSection.ts | Updates buttons to new component/variants and tweaks event handling. |
| src/sections/skills/SkillsSection.css | Updates skills chip spacing/typography and error styling to solid-ui tokens. |
| src/sections/skills/SkillsEditDialog.ts | Updates delete button variant for the skills edit dialog. |
| src/sections/shared/sectionCardHelpers.ts | Reorders helper function placement and renames a local variable for clarity. |
| src/sections/resume/ResumeSection.ts | Updates “...more” and edit/toggle buttons to new variants/slots. |
| src/sections/resume/ResumeSection.css | Updates resume card spacing/typography and toggle styling to solid-ui tokens. |
| src/sections/resume/ResumeEditDialog.ts | Updates combobox import path and icon-button variants in the resume editor. |
| src/sections/projects/ProjectSection.ts | Updates follow/edit/toggle/more buttons, loading attribute, and icon slot usage. |
| src/sections/projects/ProjectSection.css | Updates project card spacing/typography and loading selector for new loading attribute. |
| src/sections/projects/ProjectEditDialog.ts | Updates paste button variant and moves icon into a left-icon slot. |
| src/sections/languages/LanguageSection.ts | Updates section buttons to new variants. |
| src/sections/languages/LanguageSection.css | Updates spacing/typography for language list items. |
| src/sections/languages/LanguageEditDialog.ts | Updates combobox import path and icon-button variants; adds a combobox note. |
| src/sections/heading/HeadingSection.ts | Updates heading edit button to new variants/classes. |
| src/sections/heading/HeadingSection.css | Updates heading layout spacing/typography and removes many button overrides. |
| src/sections/heading/HeadingEditDialog.ts | Updates camera/upload/remove button variants and icon slot usage. |
| src/sections/contactInfo/ContactInfoSection.ts | Updates section action/toggle buttons to new variants. |
| src/sections/contactInfo/ContactInfoSection.css | Updates spacing/line-height and uses px-based values. |
| src/sections/contactInfo/ContactInfoEditDialog.ts | Updates delete/add buttons to new variants and slot usage. |
| src/sections/contactInfo/ContactInfoEditDialog.css | Updates contact-info dialog spacing/typography to px and solid-ui tokens. |
| src/sections/bio/BioSection.ts | Updates edit/add buttons to new variants and slot usage. |
| src/sections/bio/BioSection.css | Updates spacing/radius and adjusts toggle button styling for new button behavior. |
| src/ProfileView.css | Updates global layout spacing/tokens and removes/relaxes many legacy button overrides. |
Comments suppressed due to low confidence (3)
src/sections/social/SocialEditDialog.ts:300
- These icon/drag-handle controls are rendered inside a
<form>. Withouttype="button", the internal<button>used bysolid-ui-buttonmay default totype="submit", causing accidental form submission when reordering.
<solid-ui-button
class="profile-edit-dialog__drag-handle"
variant="ghost"
aria-label=${`Reorder social account ${displayIndex + 1}`}
title="Drag to reorder"
draggable="true"
@dragstart=${(event: DragEvent) => onDragStart(event, index)}
src/ProfileView.css:4
- Several mobile font-size rules now reference CSS variables like
--profile-mobile-section-heading-size/--profile-mobile-header-name-sizewithout fallbacks, but those variables are not defined in this stylesheet. When undefined, thefont-sizedeclarations become invalid and can revert to browser defaults. Define sensible defaults at the root so these rules always compute.
:root {
--profile-image-size: 3rem;
--profile-interactive-cursor: pointer;
}
src/sections/social/SocialSection.ts:56
- The literal text
SocialData: SocialPresentationappears inside the<section ...>start tag. This will be parsed as invalid attributes and can also surface in the DOM, breaking markup and potentially styles/queries.
<solid-ui-button
variant="tertiary"
class="social-card__more-button"
aria-controls="social-media"
aria-expanded="false"
@click=${expandSocialAccounts}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+193
to
+196
| padding: 10px; | ||
| box-sizing: border-box; | ||
| border: 1px solid var(--color-border, var(--gray-200, #E5E7EB)); | ||
| border-radius: var(--border-radius-md, 0.5rem); | ||
| border: 1px solid var(--solid-color-gray-200, #E5E7EB); | ||
| border-radius: 8px; |
Contributor
Author
There was a problem hiding this comment.
this is the color name right now, maybe this will change when there is only one file.
Prompt: set the layout on resize using the observer pattern like the social heading sync also check the size initially. Consolidate code if possible and put it in the utils directory. Co-authored-by: GPT-5.4 Mini <gpt-5.4-mini@openai.com>
Prompt: Use this responsive solid-ui-button code (highlighted code) to create a reusable function that can be used on all sections. Make layout, className, ariaLabel, variants which are desktop: 'tertiary' and mobile: 'ghost', onClick, desktopIcon, desktopLabel, andmobileIcon configurable. Co-authored-by: GPT-5.4 Mini <gpt-5.4-mini@openai.com>
5e15394 to
4597362
Compare
64efba4 to
34b7b33
Compare
also do more cleanup and fix a few style bugs.
34b7b33 to
89001b1
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Done
Some things we need
Things I’ll need to do
Missing colors from solid-ui