Skip to content

Conversation

@phoneticallySAARTHaK
Copy link
Contributor

@phoneticallySAARTHaK phoneticallySAARTHaK commented Mar 3, 2025

  • links in navigation take full width of the parent which makes it difficult to close the accordion unless clicked on the marker. (DMT has fixed this)
  • Remove the empty anchor tag being used as an anchor target as it interferes with DOM tab order, and AT (Assistive Technologies)
  • Contrast issues:
    • link color in dark theme
    • alert color in light theme (Contrast ratio is 5, which is 0.5 more than the required value, but not good enough for low brightness)
    • Normal text color on accent color has poor contrast ratio
  • Align summary element contents
  • Remove tabindex, aria-expanded, role attributes from Index summary element
  • Add code blocks button and permalink focus styles to make them visible when being focused just like on hover
- Select text in input when the modal is opened. - Up/Down arrow keys work like Home/End, changing the caret position, that shouldn't happen, but holding Shift with these keys selects text so it doesn't make sense to block it. - The usual action of clicking the field is to toggle the listbox, but since here the listbox is always shown, so simply remove the selection/visual focus.
Now it works without having to pass the animation name as a parameter, allowing to change closing animation with just css - Add more comments clarifying the usage. - Remove incorrect comment on Modal type about Popover, as popovers are non-modal dialogs.
- Replace `anchorLink` call with id attribute on its container. - Replace `anchorLinkIfPresent` with `anchorTargetIfPresent` clarifying its usage. It returns the target/fragment id. - Style changes: vertically align anchor icon, enable smooth scrolling, add scroll-margin to target.
@phoneticallySAARTHaK
Copy link
Contributor Author

phoneticallySAARTHaK commented Mar 3, 2025

Is this a test case failing? I don't get any error on the test package script, not even test:full

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Mar 3, 2025

Yes, maybe try merging in beta? I added some tests for the default theme rendering last night.

@phoneticallySAARTHaK
Copy link
Contributor Author

Oh, of course. PR changes theme output.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Mar 3, 2025

Changes so far LGTM

@Gerrit0 Gerrit0 merged commit af9d5e9 into TypeStrong:beta Mar 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants