Switching pages of the discussion jumps to its start instead of scrolling smoothly through the article; the comment just added is still brought into view smoothly.
The comment count in the header of the article is a region of the live list, and the fragment carries the title of the page of comments. The public live-list script looks regions up on the whole page and takes the title from the fragment; the text of the document title is a theme component shared by the layout and the fragment.
Adding and deleting a comment go through the live list: the action keeps its redirect, fetch follows it and the article controller returns the fragment. The form error is a region beside the form, the comment just added is passed by a flash and brought into view, and the editor is cleared after a comment is taken.
The discussion is a live list: its feed is a region the article controller returns as a fragment to XMLHttpRequest, without counting a view. The public site gets its own live-list script following the same protocol as the panel's. Comment actions are delegated so they work on swapped comments.
Pagination takes an optional fragment appended to every page URL. Comment pages of an article link to #article-comments, so a new page opens on the discussion instead of the top of the article.
Comment actions of the news use btn-outline-secondary btn-xs; the delete button is btn-icon and only retunes its hover to the danger colour. The style guide shows the new size.
Section and article cards use .card with modifiers that tune the card variables. The whole article card is clickable through a stretched title link; preview links, embeds and the comments link stay above it.
We use cookies and the Yandex Metrica web analytics service. By using this website, you agree to the Cookie Policy and data processing in accordance with the Personal Data Processing Policy. Cookies can be disabled at any time in your browser settings.