Back button style class
In Granite, we have a STYLE_CLASS_BACK_BUTTON
constant (implemented as .back-button
) style class we use for a back button pattern, typically in stacks like the System Settings app and AppCenter. This is a normal labelled button, but gets styled in elementary OS to have a more distinct button shape. In Pop!_OS, it gets a back-facing arrow icon at the start (via CSS) instead of a distinct shape. Several third-party apps are now using this pattern as well.
It could make sense to upstream this style class constant to GTK itself and style it in Adwaita to support this use. It also appears to be a relatively common pattern in GNOME apps, so adding a style hook there seems to make sense in GTK itself.
Examples
elementary Stylesheet
Pop!_OS
Edited by Cassidy James Blaede