Welcome! Please hold on...

0 %
Kashif Sohail
Sr. Frontend Developer
  • Residence:
    Pakistan
  • City:
    Karachi
  • Age:
    26
Magento 1x 2x
Wordpress
Laravel
Angular
React
English
Urdu
  • Bootstrap, Tailwind
  • Sass, Less, Css
  • Webpack
  • GIT knowledge
0

No products in the cart.

Clever Polypane Debugging Features I’m Loving

October 7, 2024

[ad_1]

I’m working on an update to what I call my personal website HD remaster. Well, I wouldn’t call it a “complete” redesign. I’m just cleaning up and Polypane comes into the clutch. I’ve written about how much I enjoy developing with Polypane on my personal blog Back in March 2023. In it I say that every time I open the browser I discover new things, and I’m here to say it still happens As of August 2024.

Polypane, if you’re not familiar with it, is a web browser specifically designed to help developers in a variety of ways. The most obvious feature is the multiple panels that display your project in different viewport sizes:

I won’t try to list all the features available in Polypane. I leave that to the friend and creator, Kilian Valkhof. Instead, I want to talk about a neat feature I recently discovered.

Outline tab.

In Polypane’s sidebar you will find different tabs that provide various information about your website. For example, if you’re wondering what your social media previews will look like for your latest blog post, Polypane is for you Meta Tab.

Preview card showing how open chart information is displayed on Mastodon.

The tab I want to focus on is the outline Tab. On the surface, it seems pretty simple: Polypane scans the page and provides you with outlines for headings, landmarks, links, images, focus order, and even the page’s entire accessibility tree.

The Polypane sidebar, Outline tab, and view selection options display the different views available: Headings, Points of Interest, Links, Images, Focus Order, and Accessibility Tree

Viewing your page this way can help you spot some pretty obvious errors, but Polypane doesn’t stop there. Verification of the Show problems Option will highlight some of the not so obvious problems.

Polypane sidebar, Outline tab, Points of interest view, the

You can do this in the “Sights” view Show potential also, showing elements that could potentially be page markers.

Polypane sidebar, Outline tab, Landmark view - the outline displays a red icon indicating a potential landmark element

These outline views also allow you to show an overlay on the page and highlight where things are.

Ryantrimble.com's Polypane laptop view has the landmark overlay feature enabled, which outlines landmark elements in blue while displaying their value

The reason I came across these features in the Outline tab in the first place is because of a bug I tracked down that is specifically related to focus order. So I switched to the “Focus Order” outline to examine things in more detail.

Polypane sidebar, Outline tab, Focus Order view, displays an outline of the focusable elements on the page

Then I noticed the option to display an overlay for the focus order.

The Polypane laptop view with focus order overlay enabled displays guides that mark the position of each focusable item

This provides a literal map of your page’s focus order. I found this to be incredibly useful in troubleshooting the error and a great way to visualize how someone might navigate your website using a keyboard.

Such seemingly small but useful features abound in Polypane.

Amazing tool

When I turned to Kilian and told him about my discovery, his response was: “Everything is there when you need it!”

I can vouch for that.

[ad_2]

Source link

Posted in TechnologyTags:
Write a comment