fix(FN-2396): align directory picker select button styling

- Switch the DirectoryPicker Select action to shared btn btn-primary classes with explicit button type
- Move select-button padding to component-scoped DirectoryPicker.css tokens and remove hardcoded !important overrides
- Extend DirectoryPicker tests to assert the expected class contract before click behavior
This commit is contained in:
Fusion
2026-04-24 20:58:45 -07:00
committed by gsxdsm
parent 1d06305f57
commit 452d1c7a2f
3 changed files with 10 additions and 6 deletions

View File

@@ -116,7 +116,12 @@ describe("DirectoryPicker", () => {
expect(screen.getByText("projects")).toBeDefined();
});
fireEvent.click(screen.getByText("Select"));
const selectButton = screen.getByRole("button", { name: "Select" });
expect(selectButton.classList.contains("btn")).toBe(true);
expect(selectButton.classList.contains("btn-primary")).toBe(true);
expect(selectButton.classList.contains("directory-picker-select-btn")).toBe(true);
fireEvent.click(selectButton);
expect(onChange).toHaveBeenCalledWith("/home/user");
});